To intercept hotkeys and the like to go to the remote instead of to the host OS. https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowshookexw https://learn.microsoft.com/en-us/windows/win32/winmsg/lowlevelkeyboardproc https://learn.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-kbdllhookstruct https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes https://learn.microsoft.com/de-de/windows/win32/api/winuser/nf-winuser-postmessagew https://devblogs.microsoft.com/oldnewthing/20050530-11/?p=35513 https://devblogs.microsoft.com/oldnewthing/20250319-00/?p=110979 - [x] setup test case - [x] test translateKeyode - has issues with char vs keydown - [x] test direct HWND posting - F11 still gets to viewer window somehow, super-left/right still seen by windows host - [x] test vkToWx - has challenges with shift and control, also when to keydown vs char, but all keys are received, just needs extensive remodeling - [x] test [sendInput ](https://learn.microsoft.com/en-gb/windows/win32/api/winuser/ns-winuser-keybdinput)- works better than PostMessage w/ Ctrl et al, but Super key gets routed to host Windows, for instance - [x] check gdk impl - no keyboard grab for win ⛔ - [x] check qt impl - no keyboard grab for win ⛔
To intercept hotkeys and the like to go to the remote instead of to the host OS.
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowshookexw
https://learn.microsoft.com/en-us/windows/win32/winmsg/lowlevelkeyboardproc
https://learn.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-kbdllhookstruct
https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
https://learn.microsoft.com/de-de/windows/win32/api/winuser/nf-winuser-postmessagew
https://devblogs.microsoft.com/oldnewthing/20050530-11/?p=35513
https://devblogs.microsoft.com/oldnewthing/20250319-00/?p=110979