Skip to content

Commit a47b8bc

Browse files
twitwikermanx
andauthoredNov 30, 2024··
fix!: allow to remove shortcuts (#1922)
Co-authored-by: _Kerman <kermanx@qq.com>
1 parent 45913b4 commit a47b8bc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

Diff for: ‎packages/client/setup/shortcuts.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ export default function setupShortcuts() {
6363
const baseShortcutNames = new Set(shortcuts.map(s => s.name))
6464

6565
for (const setup of setups) {
66-
const result = setup(context, shortcuts)
67-
shortcuts = shortcuts.concat(result)
66+
shortcuts = setup(context, shortcuts)
6867
}
6968

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

0 commit comments

Comments
 (0)