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

Addons: Fix Viewport resetting shortcut key not working #20167

Merged
merged 3 commits into from
Jan 18, 2023

Conversation

gitstart
Copy link
Contributor

@gitstart gitstart commented Dec 8, 2022

Issue: #17519

What I did

implementing event.code in eventToShortcut method to support alt (option) + <key> on macos

How to test

  1. Run yarn task --task dev --template react-vite/default-ts
  2. Navigate to any story in the app
  3. Change the viewport by pressing V key
  4. Ensure that alt + V reset viewport

Demo

https://www.loom.com/share/f172b62597c140a2a2365d493d88bfc6

@gitstart gitstart marked this pull request as ready for review December 9, 2022 06:34
@gitstart
Copy link
Contributor Author

gitstart commented Dec 9, 2022

@JReinhold Could you please review the solution we made in this PR?

@JReinhold JReinhold self-assigned this Dec 9, 2022
@ndelangen ndelangen requested a review from JReinhold January 14, 2023 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants