Close search bar on esacpe
Allows the searchbar to be closed when a user clicks escape, just like in the browser.
This commit is contained in:
parent
9dc0c3e2c3
commit
c53b14acef
1 changed files with 3 additions and 0 deletions
|
@ -106,6 +106,9 @@ export default () => {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (e.key === 'Escape') {
|
||||
searchAddonBar.hidden();
|
||||
}
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue