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(wasm): key tracking when no one is subscribing to Key<Down|Up> #18702

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ramezgerges
Copy link
Contributor

GitHub Issue (If applicable): closes #18617

PR Type

What kind of change does this PR introduce?

What is the current behavior?

What is the new behavior?

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

@ramezgerges
Copy link
Contributor Author

This affects NavigationView (as reported in the original issue) because, for some reason, NavigationView's logic is written so that if any modifiers are pressed, it should not open the picker popup.

#if __WASM__
#pragma warning disable IDE0051 // Remove unused private members
[JSExport]
private static void UpdateKeyStateNative(string key, bool down)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a manual test that explains what to test? Thanks!

@unodevops
Copy link
Contributor

🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-18702/index.html

@unodevops
Copy link
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-18702/index.html

Copy link
Member

@MartinZikmund MartinZikmund left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will need to improve keyboard state tracking in general as it is not completely reliable, e.g. when key is pressed before the window gets focused, opened #18714 to track this.

@ramezgerges
Copy link
Contributor Author

@MartinZikmund Actually, this is still the case on WASM after this PR. This only fixes missing tracking updates when KeyDown/Up has no listeners, but an out-of-focus press will still mess up the tracking. We will need to investigate that separately.

@jeromelaban jeromelaban marked this pull request as draft November 6, 2024 19:26
@github-actions github-actions bot added the area/automation Categorizes an issue or PR as relevant to project automation label Nov 7, 2024
@unodevops
Copy link
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-18702/index.html

@unodevops
Copy link
Contributor

🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-18702/index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/automation Categorizes an issue or PR as relevant to project automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[WASM] CalendarView of CalendarDatePicker does not work after entering uppercase letters in PasswordBox.
4 participants