Skip to content

Commit

Permalink
fix!: allow to remove shortcuts (#1922)
Browse files Browse the repository at this point in the history
Co-authored-by: _Kerman <kermanx@qq.com>
twitwi and kermanx authored Nov 30, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 45913b4 commit a47b8bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/client/setup/shortcuts.ts
Original file line number Diff line number Diff line change
@@ -63,8 +63,7 @@ export default function setupShortcuts() {
const baseShortcutNames = new Set(shortcuts.map(s => s.name))

for (const setup of setups) {
const result = setup(context, shortcuts)
shortcuts = shortcuts.concat(result)
shortcuts = setup(context, shortcuts)
}

const remainingBaseShortcutNames = shortcuts.filter(s => s.name && baseShortcutNames.has(s.name))

0 comments on commit a47b8bc

Please sign in to comment.