winex11.drv: Produce VK_CANCEL vkey on the Ctrl+Pause/Break pressing.

This commit is contained in:
Ilya Shpigor 2010-01-19 11:12:45 +03:00 committed by Alexandre Julliard
parent f8562ace96
commit a374b3cbbe
1 changed files with 5 additions and 0 deletions

View File

@ -1140,6 +1140,11 @@ static WORD EVENT_event_to_vkey( XIC xic, XKeyEvent *e)
* depending on the NumLock state */
return nonchar_key_vkey[keysym & 0xFF];
/* Pressing the Pause/Break key alone produces VK_PAUSE vkey, while
* pressing Ctrl+Pause/Break produces VK_CANCEL. */
if ((e->state & ControlMask) && (keysym == XK_Break))
return VK_CANCEL;
TRACE_(key)("e->keycode = %x\n", e->keycode);
return keyc2vkey[e->keycode];