1
0
Fork 0

Fix / and ? key shortcuts suddenly not working

This commit is contained in:
Lim Chee Aun 2024-01-10 00:03:36 +08:00
parent 5b0d6dd58b
commit c47687e2e4
3 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@ export default memo(function KeyboardShortcutsHelp() {
}
useHotkeys(
'?, shift+?',
'?, shift+?, shift+slash',
(e) => {
console.log('help');
states.showKeyboardShortcutsHelp = true;

View file

@ -11,7 +11,7 @@ export default memo(function SearchCommand({ onClose = () => {} }) {
const searchFormRef = useRef(null);
useHotkeys(
'/',
['Slash', '/'],
(e) => {
setShowSearch(true);
setTimeout(() => {

View file

@ -174,7 +174,7 @@ function Search({ columnMode, ...props }) {
}, [q, type, instance]);
useHotkeys(
'/',
['/', 'Slash'],
(e) => {
searchFormRef.current?.focus?.();
},