Skip to content

Commit c5a80e2

Browse files
authored
Merge pull request #919 from live-codes/fix-ctrl-shift-k
do not open command menu with Ctrl+Shift+K
2 parents 2383e67 + 7cbb103 commit c5a80e2

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)