Commit a374b3cb authored by Ilya Shpigor's avatar Ilya Shpigor Committed by Alexandre Julliard

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

parent f8562ace
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment