mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Extracted keyboard nav. from dropdowns to share w/ search
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import {htmlToDom} from "../services/dom";
|
||||
import {debounce} from "../services/util";
|
||||
import {KeyboardNavigationHandler} from "../services/keyboard-navigation";
|
||||
|
||||
/**
|
||||
* @extends {Component}
|
||||
@ -37,7 +38,11 @@ class GlobalSearch {
|
||||
this.input.setAttribute('autocomplete', 'on');
|
||||
this.button.focus();
|
||||
this.input.focus();
|
||||
})
|
||||
});
|
||||
|
||||
new KeyboardNavigationHandler(this.container, () => {
|
||||
this.hideSuggestions();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user