We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f218699 commit d0ec811Copy full SHA for d0ec811
src/components/Shortcuts.tsx
@@ -97,7 +97,10 @@ const Shortcuts: React.FC = () => {
97
98
const shortcutOptions = configs
99
? Object.entries(DEFAULT_SHORTCUTS).filter(([key]) => {
100
- return configs.shortcuts ? Object.keys(configs.shortcuts).includes(key) : true;
+ return configs.shortcuts
101
+ ? Object.keys(configs.shortcuts).includes(key) &&
102
+ configs.shortcuts[key as keyof typeof configs.shortcuts]
103
+ : true;
104
})
105
: Object.entries(DEFAULT_SHORTCUTS);
106
0 commit comments