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

Improve equivalence of keys across platforms #164

Open
pentamassiv opened this issue Mar 26, 2023 · 2 comments
Open

Improve equivalence of keys across platforms #164

pentamassiv opened this issue Mar 26, 2023 · 2 comments

Comments

@pentamassiv
Copy link
Collaborator

Some keys don't have an exact equivalence across platforms. However sometimes there are shortcuts that provide the same functions. Here is a list:
https://support.apple.com/guide/mac-help/windows-keys-on-a-mac-keyboard-cpmh0152/mac
I am not sure how we should improve this. Pressing multiple keys at once would be a surprise to the users. We should probably just document these differences and let the user decide on how to deal with it.

@pythoneer
Copy link
Member

Pressing multiple keys at once would be a surprise to the users.

What are you suggesting here a translation from e.g. "Home" -> "Command-Left Arrow"? Yes that sounds like a surprise and i would not expect that to happen.

We should probably just document these differences and let the user decide on how to deal with it.

Exactly.

@pentamassiv
Copy link
Collaborator Author

I found a nice list where we can check if we matched the keys correctly:
https://developer.mozilla.org/en-US/docs/web/api/ui_events/keyboard_event_key_values

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants