mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-18 21:36:56 -04:00
[ENG-1702] Fix space for command palette (#2269)
* Fix space for command palette * Update index.tsx
This commit is contained in:
@@ -169,8 +169,9 @@ export const useShortcut = (shortcut: Shortcuts, func: (e: KeyboardEvent) => voi
|
||||
|
||||
// useKeys doesn't like readonly
|
||||
useKeys(keys as string[], (e) => {
|
||||
if (!visible) return;
|
||||
if (!import.meta.env.DEV) e.preventDefault();
|
||||
return func(e);
|
||||
}, {
|
||||
when: visible
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user