Repository navigation
fix: Report held Alt and Windows modifiers on X11, Android and framebuffer - #25402
ramezgerges merged 3 commits into
Conversation
Mod1, the Alt modifier, was reported as Shift, so a key pressed with Alt held carried Shift instead of Menu. Since the modifier state is resynced from each key event's modifiers, holding Alt and pressing another key marked Alt released and Shift held, and CoreWindow.GetKeyState(Menu) read up for the rest of the press. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The meta state's Alt bits were never mapped, so key events carried no Menu modifier and the modifier resync marked a held Alt released on the next key. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The Meta keys were never reported as the Windows modifier, so the modifier resync marked a held Windows key released on the next key. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-25402/wasm-skia-net9/index.html |
|
The build 239277 found UI Test snapshots differences: Details
|
|
/azp run Uno.UI - CI |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-25402/wasm-skia-net9/index.html |
|
The build 239688 found UI Test snapshots differences: Details
|
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
|
@Mergifyio backport servicing/6.8 release/stable/6.7 |
✅ Backports have been createdDetails
|
…6.7/pr-25402 fix: Report held Alt and Windows modifiers on X11, Android and framebuffer (backport #25402)
…r-25402 fix: Report held Alt and Windows modifiers on X11, Android and framebuffer (backport #25402)
GitHub Issue: closes #25401
PR Type:
🐞 Bugfix
What changed? 🚀
Since #24575, the keyboard modifier state is resynced from each key event's
KeyboardModifiersbefore dispatch. Three platform mappers leave out a modifier that is held, so the resync marks it released andCoreWindow.GetKeyStatereads it as up while it is still down:Mod1Mask(Alt) was mapped toShift. It now maps toMenu. A duplicateControlMaskcheck is removed.AltMasknow maps toMenu.Windows.The tvOS keyboard source always reports
None, which is correct: it only carries Siri Remote presses, and the remote has no modifier keys.These mapper bugs predate #24575. Before it, a wrong modifier only affected that event's
KeyModifiers; the resync now uses it to rewrite the tracked key state. A backport of this PR will go out together with #24575's backport to 6.8 (#25155).Validation:
KeyboardStateProbesample, driven by real X events fromxdotool: hold Alt, press F, release Alt.menu=Down, thenshift=Down menu=Noneonce F is pressed while Alt is still held.menu=Downuntil Alt is released, and Shift staysNone.Uno.UI.Runtime.X11,Uno.UI.Runtime.Linux.FrameBufferandUno.WinRT(net11.0-android).PR Checklist ✅
KeyboardStateProbesample. The mappers are internal to the platform runtimes, which the runtime tests don't reference.Screenshots Compare Test Runresults.🤖 Generated with Claude Code