DevWeave logoDevWeave
CommunitiesDiscoverHelp ForumFeaturesWhy DevWeaveAI & Verification
Log inGet started
Back to Issue Discovery
lokeshazad10/DrawDesign #15openJavaScriptJavaScript & TypeScript

Fix: Ctrl + Shift + E / Cmd + Shift + E keyboard shortcut is not working

Opened by @lokeshazad10 · Assignees: @tanbopp

View on GitHub
buggood first issue

Solve & Merge Reward: Up to +210 XP & +60 Coins

+30 XP on PR open · +180 XP & +60 coins on merge

2 GitHub Stars

Claim Status & GitHub Signal

Assigned on GitHub (@tanbopp). Check recent comments before starting duplicate work.

AI Issue Assessment · Grounded Analyzer
3.6 / 10 · 3–4 · Beginner

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.

Skill Match Breakdown

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.

Log in to receive your free level-adapted Hint #1 grounded in this repository's files.

Skill-Gap Learning

Gap-Targeted
Learn Linux

Shell navigation, process inspection, pipes, and CLI debugging.

Addresses skill gap: CLI & Shell

Hands-On CodeCrafters Practice
Skill-Gap Challenge
Build your own Shell
JavaScript

Parse commands, manage PATH lookups, pipes, and process execution.

Practice skill gap: JavaScript

Build your own HTTP Server
JavaScript

Handle raw TCP connections, HTTP parsing, headers, and concurrent routes.

Practice skill gap: JavaScript

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

  1. Open the application.
  2. Press Ctrl + Shift + E (or Cmd + Shift + E on macOS).
  3. Observe that the expected action does not execute.

Expected Behavior

  • Pressing Ctrl + Shift + E (Windows/Linux) or Cmd + Shift + E (macOS) should consistently trigger the intended action.
  • Browser default behavior should be blocked using e.preventDefault().

Possible Root Cause & Suggested Fix

  1. Case-sensitivity issue: When Shift is held down, e.key evaluates to uppercase 'E' instead of 'e'. Using e.key.toLowerCase() === 'e' ensures it works regardless of Shift or Caps Lock state.
  2. Missing Modifier/Default Prevention: Ensure both e.ctrlKey || e.metaKey and e.shiftKey are checked properly inside the switch block, and e.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 + E works reliably on Windows/Linux.
  • Cmd + Shift + E works reliably on macOS.
  • Works regardless of Caps Lock being 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)

@tanbopp
View comment →

Hi! I'd like to work on this issue. I'll look into the keydown handler and submit a PR soon.

@tanbopp
View comment →

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?)

@lokeshazad10OWNER
View comment →

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?

@tanbopp
View comment →

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.

@lokeshazad10OWNER
View comment →

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

@tanbopp
View comment →

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

@tanbopp
View comment →
<img width="1358" height="634" alt="image" src="https://github.com/user-attachments/assets/e250e66a-5063-4b3d-830a-e287761c0cd7" />

i even tried it out on my MacBook

@lokeshazad10OWNER
View comment →

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

@tanbopp
View comment →

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.

@lokeshazad10OWNER
View comment →

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

@tanbopp
View comment →

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

@lokeshazad10OWNER
View comment →

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.

@tanbopp
View comment →

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.

sounds good, thanks! I'll open a PR with Ctrl/Cmd+Shift+X as the fallback shortly

@lokeshazad10OWNER
View comment →

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.

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

@tanbopp
View comment →

PR is up: https://github.com/lokeshazad10/DrawDesign/pull/18. Let me know if you want any changes!

Peer Help Forum · lokeshazad10/DrawDesign #15

Issue Troubleshooting Threads (0)

Ask Peers for Help

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.

Sign In

Contribution Workflow

Track your local progress before opening a pull request on GitHub.

Repository Context

Top Repository Paths

.env.example
[dir] .github
.github/FUNDING.yml
[dir] .github/ISSUE_TEMPLATE
.github/ISSUE_TEMPLATE/bug_report.yml
.github/ISSUE_TEMPLATE/feature_request.yml
.github/PULL_REQUEST_TEMPLATE.md
.gitignore
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
SECURITY.md
[dir] docs
[dir] docs/images
docs/images/screenshot.png
eslint.config.js
index.html
package-lock.json
package.json
[dir] public
public/DrawDesign.svg
public/favicon.svg

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:

  1. Search the existing issues to see whether your proposal has already been discussed.
  2. 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.
  3. Discuss the proposed approach in the issue and wait for maintainer feedback.
  4. Do not begin implementation until a maintainer has explicitly assigned the issue to you.
  5. After assignment, create a separate Git branch for the work.
  6. Make focused changes on that branch, keeping them limited to the assigned issue.
  7. Run npm test and npm run lint. For application changes, also run npm run build.
  8. 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.