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

Alexandre Julliard julliard at winehq.org
Tue Jan 19 11:53:44 CST 2010


Module: wine
Branch: master
Commit: a374b3cbbede1c15361130f98485454028492e23
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a374b3cbbede1c15361130f98485454028492e23

Author: Ilya Shpigor <shpigor at etersoft.ru>
Date:   Tue Jan 19 11:12:45 2010 +0300

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

---

 dlls/winex11.drv/keyboard.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/winex11.drv/keyboard.c b/dlls/winex11.drv/keyboard.c
index 4d486b0..74581cb 100644
--- a/dlls/winex11.drv/keyboard.c
+++ b/dlls/winex11.drv/keyboard.c
@@ -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];




More information about the wine-cvs mailing list