Fix / and ? key shortcuts suddenly not working

pull/393/head
Lim Chee Aun 2024-01-10 00:03:36 +08:00
rodzic 5b0d6dd58b
commit c47687e2e4
3 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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