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