mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: closes search-menu on escape (#7804)
This commit is contained in:
parent
2af4002817
commit
ea2a9bc4fc
@ -204,6 +204,12 @@ export default createWidget("search-menu", {
|
||||
},
|
||||
|
||||
keyDown(e) {
|
||||
if (e.which === 27 /* escape */) {
|
||||
this.sendWidgetAction("toggleSearchMenu");
|
||||
e.preventDefault();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (searchData.loading || searchData.noResults) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user