Skip to content
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

fix: Fixes the shortcut collision between "toggleHandTool" and "distributeHorizontally" #7189

Merged
merged 2 commits into from
Nov 10, 2023

Conversation

GabiRepare
Copy link
Contributor

Issue

#7188

Fix

The shortcut H for Hand tools doesn't filter out the ALT key presses.
This PR adds the filter on the Hand tools shorcut.

Possible improvements

  • Other shortcuts from actionCanvas.tsx doesn't exclude the ALT and might also need this filter
  • The CTRL key press should probably also be filtered out

Fixes the shortcut conflict between "toggleHandTool" and "distributeHorizontally"
@vercel
Copy link

vercel bot commented Oct 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
excalidraw ✅ Ready (Inspect) Visit Preview Nov 10, 2023 2:27pm
excalidraw-package-example ✅ Ready (Inspect) Visit Preview Nov 10, 2023 2:27pm
1 Ignored Deployment
Name Status Preview Updated (UTC)
docs ⬜️ Ignored (Inspect) Visit Preview Nov 10, 2023 2:27pm

@GabiRepare
Copy link
Contributor Author

GabiRepare commented Oct 25, 2023

Manual test results from Vercel build preview

  • ALT+H now triggers the horizontal distribution without errors
  • H still triggers the hand tool

Seems good to go.

@dwelle
Copy link
Member

dwelle commented Oct 25, 2023

@GabiRepare thanks for the catch. Can you also disable event[KEYS.CTRL_OR_CMD] to future-proof it?

@dwelle dwelle merged commit 6817935 into excalidraw:master Nov 10, 2023
9 checks passed
ad1992 pushed a commit that referenced this pull request Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants