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

View File

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