We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Aliki
1 parent 96f9312 commit 5b15418Copy full SHA for 5b15418
lib/rdoc/generator/template/aliki/js/aliki.js
@@ -94,6 +94,14 @@ function hookSearch() {
94
}
95
});
96
97
+ // Hide search results on Escape key on desktop too
98
+ document.addEventListener('keydown', (e) => {
99
+ if (e.key === 'Escape' && input.matches(":focus")) {
100
+ search.hide();
101
+ input.blur();
102
+ }
103
+ });
104
+
105
// Show search results when focusing on input (if there's a query)
106
input.addEventListener('focus', () => {
107
if (input.value.trim()) {
0 commit comments