Repository navigation
feat(rdp): multi-tab workspace window, 4-state immersive maximize and numeric keypad fix - #11
Merged
Merged
Conversation
The keypad scancode table was derived arithmetically from the Key enum order (0x52 + digit), but only NumPad0 sits at 0x52: digits 1-9 occupy the physical grid 0x47-0x51. NumPad1 was sent as the keypad decimal (0x53) and NumPad5/NumPad6 as F11/F12, which made the numeric keypad unusable in RDP sessions and made local NumLock toggling appear to do nothing. Route the digits through a new Services/RdpKeyboardScancodes lookup and re-assert the local toggle state through a synchronize event after each NumLock/CapsLock/ScrollLock key-up so the remote LED cannot drift from the local one. Adds RdpKeyboardScancodesTests and documents the keypad grid rule in AGENTS.md.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's Changed
Multi-tab RdpWorkspaceWindow and 3-mode window workflow
Views/RdpWorkspaceWindowso an RDP session can live in a dedicated multi-tab window, alongside the existing tab-in-main-window and detached-window flows (19 files, +788/-36).4-state immersive maximize and workspace handoff in DetachedTabWindow
DetachedTabWindow(+62/-5).Numeric keypad scancodes (fix)
0x52 + digit), but only NumPad0 sits at 0x52 - digits 1-9 occupy the physical grid 0x47-0x51. NumPad1 was sent as the keypad decimal (0x53) and NumPad5/NumPad6 as F11/F12, which made the numeric keypad type garbage or nothing and made local NumLock toggling appear to have no effect.Services/RdpKeyboardScancodeslookup table, and the local NumLock/CapsLock/ScrollLock state is re-asserted to the remote through a synchronize event after each toggle key-up, so the remote LED state cannot drift from the local one (mstsc behaviour).RdpKeyboardScancodesTests(14 regression cases) and documents the keypad grid rule inAGENTS.mdso the mapping is not derived arithmetically again.Verification
dotnet build CxShell.csproj- 0 warnings, 0 errors.dotnet test CxShell.Tests/CxShell.Tests.csproj- 790/790 pass on this branch, including the 14 new numpad-scancode cases.