Fix: Ctrl + Shift + E / Cmd + Shift + E keyboard shortcut is not working
Opened by @lokeshazad10 · Assignees: @tanbopp
Solve & Merge Reward: Up to +210 XP & +60 Coins
+30 XP on PR open · +180 XP & +60 coins on merge
Claim Status & GitHub Signal
Assigned on GitHub (@tanbopp). Check recent comments before starting duplicate work.
Estimated from issue labels (bug, good first issue), JavaScript context, and discussion depth. There are 15 GitHub comments to review for maintainer clarifications. Note: this is an estimate, not a guarantee.
What It's About
Fix: Ctrl + Shift + E / Cmd + Shift + E keyboard shortcut is not working. Bug Description The keyboard shortcut Ctrl + Shift + E (on Windows/Linux) and Cmd + Shift + E (on macOS) is currently not triggering the expected action. Steps to Reproduce 1. Open the application. 2. Press Ctrl + Shift + E (or Cmd + Shift + E on macOS). 3. Ob
Why It Matters
Resolving #15 improves reliability and developer experience in lokeshazad10/DrawDesign.
Expected Outcome
A focused pull request addressing #15 with relevant checks or tests verified locally.
Log in to compare this issue's requirements against your profile skills. Required concepts: JavaScript, CLI & Shell.
Progressive AI Hints
Hint #1 is always free and calibrated to your experience level. Extra hints unlock with coins without spoiling the full solution.
Skill-Gap Learning
Issue Description
Bug Description
The keyboard shortcut Ctrl + Shift + E (on Windows/Linux) and Cmd + Shift + E (on macOS) is currently not triggering the expected action.
Steps to Reproduce
- Open the application.
- Press
Ctrl + Shift + E(orCmd + Shift + Eon macOS). - Observe that the expected action does not execute.
Expected Behavior
- Pressing
Ctrl + Shift + E(Windows/Linux) orCmd + Shift + E(macOS) should consistently trigger the intended action. - Browser default behavior should be blocked using
e.preventDefault().
Possible Root Cause & Suggested Fix
- Case-sensitivity issue: When
Shiftis held down,e.keyevaluates to uppercase'E'instead of'e'. Usinge.key.toLowerCase() === 'e'ensures it works regardless ofShiftorCaps Lockstate. - Missing Modifier/Default Prevention: Ensure both
e.ctrlKey || e.metaKeyande.shiftKeyare checked properly inside theswitchblock, ande.preventDefault()is called before executing the handler.
document.addEventListener('keydown', (e) => {
const mod = e.ctrlKey || e.metaKey;
switch (e.key.toLowerCase()) {
case 'e':
if (mod && e.shiftKey) {
e.preventDefault();
// Trigger expected action here
}
break;
}
});
Acceptance Criteria
-
Ctrl + Shift + Eworks reliably on Windows/Linux. -
Cmd + Shift + Eworks reliably on macOS. - Works regardless of
Caps Lockbeing ON or OFF. - Browser default shortcut behavior is prevented.
Linked Pull Requests (0)
No linked or cross-referenced pull requests detected via GitHub timeline. Check comments below for informal claims before starting.
GitHub Comments (15)
Hi! I'd like to work on this issue. I'll look into the keydown handler and submit a PR soon.
Hi! I'd like to work on this. I can confirm Ctrl+E opens the export dialog on my end. Could you clarify what Ctrl+Shift+E should trigger? (e.g. export with "Selected objects only" enabled?)
I found that the export shortcut key (Ctrl + Shift + E) is not working specifically in my Chrome browser, whereas it works in other browsers such as Brave, Edge, etc. Could you tell me which browser you are using?
I found that the export shortcut key (Ctrl + Shift + E) is not working specifically in my Chrome browser, whereas it works in other browsers such as Brave, Edge, etc. Could you tell me which browser you are using?
I use the Chrome browser. Pressing CTRL + E opens the export panel.
I found that the export shortcut key (Ctrl + Shift + E) is not working specifically in my Chrome browser, whereas it works in other browsers such as Brave, Edge, etc. Could you tell me which browser you are using?
I use the Chrome browser. Pressing CTRL + E opens the export panel.
but CTRL + Shift + E is the shortcut key for exporting the canvas, not CTRL + E
but CTRL + Shift + E is the shortcut key for exporting the canvas, not CTRL + E
Sorry, I meant CTRL + Shift + E. That actually works in Chrome
i even tried it out on my MacBook
but CTRL + Shift + E is the shortcut key for exporting the canvas, not CTRL + E
Sorry, I meant CTRL + Shift + E. That actually works in Chrome
ok, but it's not working on my chrome browser, and it opens default shortcut, not application's shortcurt
Thanks for the details! To clarify: on my Windows Chrome, Ctrl+Shift+E opens the Export dialog (the screenshot above), so the shortcut works in the app and this looks specific to your Chrome setup. Could you try: (1) an Incognito window, (2) chrome://extensions/shortcuts to see if an extension is bound to Ctrl+Shift+E, (3) disabling extensions temporarily? If it works there, the cause is likely an extension or browser-level shortcut, which preventDefault() in the page can't override. Happy to help if it turns out to be something in the code.
i found that a color picker extension conflict that shortcut key, i removed that shortcut key and it works well, To ensure that no other user faces the same problem that I encountered, we should also create a fallback shortcut.
Ctrl + Shift + E — primary
Ctrl + Alt + E — fallback
Ctrl + Shift + X || E — alternate
ohh i see, ok, good to know it was an extension conflict. i'd be happy to take the fallback shortcut part. Quick question on the last line: is Ctrl+Shift+X the alternate you want,, or something else? Also, Ctrl+Alt+E is AltGr+E on some keyboard layouts (it types "€"), so it might clash for those users
ohh i see, ok, good to know it was an extension conflict. i'd be happy to take the fallback shortcut part. Quick question on the last line: is Ctrl+Shift+X the alternate you want,, or something else? Also, Ctrl+Alt+E is AltGr+E on some keyboard layouts (it types "€"), so it might clash for those users
Great catch on the Ctrl + Alt + E (AltGr + E / €) conflict! Let's skip Ctrl + Alt + E to avoid breaking European/international keyboard layouts.
Yes, I meant Ctrl + Shift + X (Cmd + Shift + X on macOS) as the fallback. So let's keep the export shortcuts simple and conflict-free:
- Primary:
Ctrl + Shift + E/Cmd + Shift + E - Fallback:
Ctrl + Shift + X/Cmd + Shift + X
Feel free to go ahead and open a PR with this! I'll assign the issue to you.
ohh i see, ok, good to know it was an extension conflict. i'd be happy to take the fallback shortcut part. Quick question on the last line: is Ctrl+Shift+X the alternate you want,, or something else? Also, Ctrl+Alt+E is AltGr+E on some keyboard layouts (it types "€"), so it might clash for those users
Great catch on the
Ctrl + Alt + E(AltGr + E/€) conflict! Let's skipCtrl + Alt + Eto avoid breaking European/international keyboard layouts.Yes, I meant
Ctrl + Shift + X(Cmd + Shift + Xon macOS) as the fallback. So let's keep the export shortcuts simple and conflict-free:
- Primary:
Ctrl + Shift + E/Cmd + Shift + E- Fallback:
Ctrl + Shift + X/Cmd + Shift + XFeel free to go ahead and open a PR with this! I'll assign the issue to you.
sounds good, thanks! I'll open a PR with Ctrl/Cmd+Shift+X as the fallback shortly
ohh i see, ok, good to know it was an extension conflict. i'd be happy to take the fallback shortcut part. Quick question on the last line: is Ctrl+Shift+X the alternate you want,, or something else? Also, Ctrl+Alt+E is AltGr+E on some keyboard layouts (it types "€"), so it might clash for those users
Great catch on the
Ctrl + Alt + E(AltGr + E/€) conflict! Let's skipCtrl + Alt + Eto avoid breaking European/international keyboard layouts. Yes, I meantCtrl + Shift + X(Cmd + Shift + Xon macOS) as the fallback. So let's keep the export shortcuts simple and conflict-free:
- Primary:
Ctrl + Shift + E/Cmd + Shift + E- Fallback:
Ctrl + Shift + X/Cmd + Shift + XFeel free to go ahead and open a PR with this! I'll assign the issue to you.
sounds good, thanks! I'll open a PR with Ctrl/Cmd+Shift+X as the fallback shortly
this issue is assigned to you, go ahead
PR is up: https://github.com/lokeshazad10/DrawDesign/pull/18. Let me know if you want any changes!
Issue Troubleshooting Threads (0)
No troubleshooting threads opened for this issue yet. If you hit a test, build, or navigation blocker, post what you've tried so fellow contributors can help.
PR Verification & Rewards
Sign in and link GitHub to verify your PR against this issue and earn XP + coins.
Contribution Workflow
Track your local progress before opening a pull request on GitHub.
Repository Context
Top Repository Paths
CONTRIBUTING.md Excerpt
Contributing to DrawDesign
Thank you for considering a contribution! Contributions of all sizes are welcome, including bug reports, feature ideas, code, tests, documentation, accessibility improvements, design feedback, and translations. This guide walks through the process from setting up the project to opening a pull request.
Contribution workflow
Before making any code, documentation, design, test, accessibility, or translation change, follow this workflow:
- Search the existing issues to see whether your proposal has already been discussed.
- If there is no suitable issue, create one using the appropriate bug report form or feature request form. If a relevant issue already exists, comment on it instead.
- Discuss the proposed approach in the issue and wait for maintainer feedback.
- Do not begin implementation until a maintainer has explicitly assigned the issue to you.
- After assignment, create a separate Git branch for the work.
- Make focused changes on that branch, keeping them limited to the assigned issue.
- Run
npm testandnpm run lint. For application changes, also runnpm run build. - Push your branch and open a pull request linked to the assigned issue.
Pull requests without a corresponding issue explicitly assigned to the contributor may be closed or may need an issue before review. Maintainers may permit a very small typo or documentation-only fix as an exception; ask before making that change.
For a security vulnerability, do not open a public issue. Follow the private reporting instructions in SECURITY.md.
1. Set up your development environment
You will need:
- Node.js 22.22.2 or newer in the 22.x line, 24.15.0 or newer in the 24.x line, or 26.0.0+
- npm (included with Node.js)
- Git
- A modern web browser
Check that Node.js and npm are installed:
node --version
npm --version
git --version
Fork and clone the repository
If you do not have write access to this repository, first click Fork on the DrawDesign GitHub page. This creates your own copy of the repository under your GitHub account.
Clone your fork, replacing <your-github-username> with your G
... (truncated)
Advisory PR Assistant
Helps structure your PR description or unpack reviewer feedback. Does not perform GitHub actions.