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:
Charles Morgan 2020-10-14 07:23:02 -04:00
parent 9dc0c3e2c3
commit c53b14acef
No known key found for this signature in database
GPG key ID: D71946CD723249BD

View file

@ -106,6 +106,9 @@ export default () => {
return false; return false;
} }
if (e.key === 'Escape') {
searchAddonBar.hidden();
}
return true; return true;
}); });
} }