Skip to content

Commit c53b14a

Browse files
Close search bar on esacpe
Allows the searchbar to be closed when a user clicks escape, just like in the browser.
1 parent 9dc0c3e commit c53b14a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

resources/scripts/components/server/Console.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ export default () => {
106106
return false;
107107
}
108108

109+
if (e.key === 'Escape') {
110+
searchAddonBar.hidden();
111+
}
109112
return true;
110113
});
111114
}

0 commit comments

Comments
 (0)