File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 33 import { afterUpdate } from ' svelte' ;
44 import { runAction } from ' ../utils' ;
55 import KeyboardButton from ' ./KeyboardButton.svelte' ;
6- import { parseKeybinding } from ' tinykeys' ;
6+ import * as tinykeys from ' tinykeys' ;
77 import type { action } from ' $lib/types' ;
88
99 export let action: action ;
3232 };
3333
3434 if (action .shortcut ) {
35- const parsedShortcut = parseKeybinding (action .shortcut );
35+ const parsedShortcut = tinykeys . parseKeybinding (action .shortcut );
3636 formattedShortcut = parsedShortcut .flat ().filter ((s ) => s .length > 0 );
3737 }
3838
4141 paletteStore .update ((value ) => {
4242 return {
4343 ... value ,
44- activeCommandId: action .actionId ,
45- selectedCommandId: action .actionId
44+ activeCommandId: action .actionId || ' ' ,
45+ selectedCommandId: action .actionId || ' '
4646 };
4747 });
4848 };
You can’t perform that action at this time.
0 commit comments