diff --git a/src/components/keyboard-shortcuts-help.jsx b/src/components/keyboard-shortcuts-help.jsx index e95fefa8..90cc82cc 100644 --- a/src/components/keyboard-shortcuts-help.jsx +++ b/src/components/keyboard-shortcuts-help.jsx @@ -17,7 +17,7 @@ export default memo(function KeyboardShortcutsHelp() { } useHotkeys( - '?, shift+?', + '?, shift+?, shift+slash', (e) => { console.log('help'); states.showKeyboardShortcutsHelp = true; diff --git a/src/components/search-command.jsx b/src/components/search-command.jsx index 105ab97e..c40a92fa 100644 --- a/src/components/search-command.jsx +++ b/src/components/search-command.jsx @@ -11,7 +11,7 @@ export default memo(function SearchCommand({ onClose = () => {} }) { const searchFormRef = useRef(null); useHotkeys( - '/', + ['Slash', '/'], (e) => { setShowSearch(true); setTimeout(() => { diff --git a/src/pages/search.jsx b/src/pages/search.jsx index 7c4f6ea3..0b2f706d 100644 --- a/src/pages/search.jsx +++ b/src/pages/search.jsx @@ -174,7 +174,7 @@ function Search({ columnMode, ...props }) { }, [q, type, instance]); useHotkeys( - '/', + ['/', 'Slash'], (e) => { searchFormRef.current?.focus?.(); },