mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 13:14: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:
parent
9dc0c3e2c3
commit
c53b14acef
@ -106,6 +106,9 @@ export default () => {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (e.key === 'Escape') {
|
||||
searchAddonBar.hidden();
|
||||
}
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user