Cygwin/X: Copy the state of the Windows keyboard device to the Virtual Core Keyboard at startup.
Otherwise, this happens lazily after the first keypress, which can lead to applications which are started from a shell window and inspect the keyboard state before a character is typed getting the wrong idea about the desired keymap (e.g. xemacs shows this behaviour) Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
parent
7a440e5b7a
commit
2f2f3da080
|
@ -273,6 +273,10 @@ winKeybdProc (DeviceIntPtr pDeviceInt, int iState)
|
|||
|
||||
case DEVICE_ON:
|
||||
pDevice->on = TRUE;
|
||||
|
||||
// immediately copy the state of this keyboard device to the VCK
|
||||
// (which otherwise happens lazily after the first keypress)
|
||||
CopyKeyClass(pDeviceInt, inputInfo.keyboard);
|
||||
break;
|
||||
|
||||
case DEVICE_CLOSE:
|
||||
|
|
Loading…
Reference in New Issue