mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-14 20:33:45 +02:00
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:
@@ -106,6 +106,9 @@ export default () => {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (e.key === 'Escape') {
|
||||
searchAddonBar.hidden();
|
||||
}
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user