-
Notifications
You must be signed in to change notification settings - Fork 834
fix(macOS): ignore option and command as standalone keys #22014
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes a bug on macOS where pressing the Command or Option keys alone would insert symbols into a TextBox. The fix adds these modifier keys to the list of keys that are ignored when pressed standalone, preventing them from triggering text input.
Key changes:
- Added VirtualKey.Menu (Option/Alt key) and related variants (LeftMenu, RightMenu) to the ignored keys list
- Added VirtualKey.LeftWindows and VirtualKey.RightWindows (Command keys on macOS) to the ignored keys list
- This ensures these modifier keys only have an effect when combined with other keys
|
π€ Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-22014/docs/index.html |
|
π€ Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22014/wasm-skia-net9/index.html |
Co-authored-by: spouliot <[email protected]>
Co-authored-by: spouliot <[email protected]>
test: Add coverage for Menu/Option and Windows/Command modifier keys
|
|
|
π€ Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-22014/docs/index.html |
|
π€ Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22014/wasm-skia-net9/index.html |
|
The build 186034 found UI Test snapshots differences: Details
|
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
|
π€ Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-22014/docs/index.html |
|
|
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
π€ Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-22014/docs/index.html |
|
The build 188069 found UI Test snapshots differences: Details
|
|
|
|
π€ Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22014/wasm-skia-net9/index.html |
|
π€ Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-22014/docs/index.html |
|
The build 188766 found UI Test snapshots differences: Details
|
|
The build 188766 found UI Test snapshots differences: Details
|
|
|
|
I keep having That does not make sense since this specific test is annotated with Have you seen this on other PR @MartinZikmund ? |
GitHub Issue: closes #21925
PR Type:
What is the current behavior? π€
Using Command or Option keys insert symbols to TextBox
What is the new behavior? π
Unless it's a modifier (using with other keys) then the Command/Option key is ignored (when alone).
PR Checklist β
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Runresults.Other information βΉοΈ