-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Added Osx-Command keys to Key-enum #10894
Conversation
Honestly, not sure if we need it or not.
|
@Mikolaytis instead of reacting with 👎 , can you please share your thoughts with me? Is the name misleading? Is the key the wrong key? Note: I don't own a Mac, so I cannot test is on my own. |
@maxkatz6 I looked up an image of the Mac-keyboard and saw they have a left and right command-key. Are they mapped to the same key internally? |
@timunie yes, the same key, as far as I can tell. |
You can test this PR using the following package version. |
You can test this PR using the following package version. |
Marked as WIP because due to @Mbucari feedback I'd rather like to revert the last commit. |
acc. to community feedback both keys are available. Naming is updated to be similar to LWin and RWin
2b753c5
to
773f596
Compare
You can test this PR using the following package version. |
I just don't like it. I don't like when we have multiple enum names for a same value. This way we can add tones more names for OEM keys and other things and I think that this is not a good idea. PS: I'm using a mac for coding on a C# language for over a decade now and I'm used to win name as vkCode for a command key. |
Sounds great! Where do I sign? Joking aside, your "explanation" amounts to little more than "because I don't want it". That's no reason to deny a feature to someone else. A feature, I might add, that in no way impacts your use of the library. You're used to using Windows names? Great! Keep using them. |
Since #12549, there's now My thoughts on this PR:
|
I am going to close this PR, as we didn't have any agreement on this API. |
all right, understood. |
What does the pull request do?
Adds
OsxLeftCommand
andOsxRightCommand
alias keys to Key-enum.What is the current behavior?
A developer who is developing an App for Mac-OS has to know that
LWin
andRWin
is the commands key on Mac-OS. However, this is not very intuitive.What is the updated/expected behavior with this PR?
We have an alias for these keys in order to reduce confusion
How was the solution implemented (if it's not obvious)?
Checklist
Breaking changes
Obsoletions / Deprecations
Fixed issues
Fixes #10889