Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/livecodes/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2857,8 +2857,9 @@ const handleCommandMenu = async () => {
let anotherShortcut = false;
const onHotkey = async (e: KeyboardEvent) => {
// Ctrl+K opens the command menu
// do not open the menu if shortcut is Ctrl+Shift+K
// wait for 500ms to allow other shortcuts like Ctrl+K Ctrl+0
if (!ctrl(e)) {
if (!ctrl(e) || e.shiftKey) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you should add meta and alt keys as well for future usages?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. I will do that isA.
Thank you.

anotherShortcut = false;
return;
}
Expand Down