feat: add setting to toggle keyboard shortcuts on/off (#27300)
This commit is contained in:
7 files changed
+45
-3
No files matched your search
@@ -248,6 +248,10 @@
|
||||
|
||||
const setupKeyboardShortcuts = () => {
|
||||
document.addEventListener('keydown', async (event) => {
|
||||
if ($settings?.keyboardShortcuts === false) {
|
||||
return;
|
||||
}
|
||||
|
||||
const shortcut = matchKeybinding(event);
|
||||
if (shortcut === Shortcut.SEARCH) {
|
||||
console.log('Shortcut triggered: SEARCH');
|
||||
|
||||
Reference in new issue
Block a user