Skip to content

Commit 7cbb103

Browse files
committed
fix(CommandMenu): do not open command menu with Ctrl+Shift+K
1 parent 2383e67 commit 7cbb103

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/livecodes/core.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2857,8 +2857,9 @@ const handleCommandMenu = async () => {
28572857
let anotherShortcut = false;
28582858
const onHotkey = async (e: KeyboardEvent) => {
28592859
// Ctrl+K opens the command menu
2860+
// do not open the menu if shortcut is Ctrl+Shift+K
28602861
// wait for 500ms to allow other shortcuts like Ctrl+K Ctrl+0
2861-
if (!ctrl(e)) {
2862+
if (!ctrl(e) || e.shiftKey) {
28622863
anotherShortcut = false;
28632864
return;
28642865
}

0 commit comments

Comments
 (0)