forked from Alex/Pterodactyl-Panel
Require meta key to trigger search; change from "k" to "/"; closes #2785
This commit is contained in:
parent
0477e66bab
commit
9b01734752
@ -9,7 +9,7 @@ export default () => {
|
||||
|
||||
useEventListener('keydown', (e: KeyboardEvent) => {
|
||||
if ([ 'input', 'textarea' ].indexOf(((e.target as HTMLElement).tagName || 'input').toLowerCase()) < 0) {
|
||||
if (!visible && e.key.toLowerCase() === 'k') {
|
||||
if (!visible && e.metaKey && e.key.toLowerCase() === '/') {
|
||||
setVisible(true);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user