-
-
Notifications
You must be signed in to change notification settings - Fork 220
do not open command menu with Ctrl+Shift+K #919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for livecodes ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Deploying livecodes with
|
| Latest commit: |
7cbb103
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://f6694d91.livecodes.pages.dev |
| Branch Preview URL: | https://fix-ctrl-shift-k.livecodes.pages.dev |
|
|
Size Change: -12 B (0%) Total Size: 971 kB ℹ️ View Unchanged
|
WalkthroughA guard condition in the command menu hotkey handler is updated to check that the Shift key is not pressed, preventing Ctrl+Shift+K from opening the command menu while keeping Ctrl+K functional. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code graph analysis (1)src/livecodes/core.ts (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (13)
🔇 Additional comments (1)
Tip 📝 Customizable high-level summaries are now available!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| // 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) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
What type of PR is this? (check all applicable)
Description
do not open command menu with Ctrl+Shift+K
Related Tickets & Documents
#918
Thank you @sharno !
Summary by CodeRabbit