I have an app that needs to remote keystrokes to a server environment. Information to be remoted includes the VitualKey code and any modifiers (e.g. Shift, Control, etc).
Working with Physical keyboard this is not an issue using the KeyDown event. Problem is with the OnScreen keyboard there is no way to detect the Shift state of the keyboard. I know that I can get the resulting character in the CharacterReceived event of
the core window, but that event does not have the VirtualKey code. I prefer to work with KeyDown event if possible.
Is there anyway to detect the OnScreen keyboard's current SHIFT key state during KeyDown event?
Failing is there an easy way to convert the CharCode of Character received to VirtualKey and modifiers? In Win32 could use VkKeyScan\VkKeyScanEx to do this. But these are Desktop-Only functions not available to Metro apps. This is less preferable to knowing
ShiftKey state during KeyDown but might be doable.
Thank You,
Raul