commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r8071 - in trunk/gnue-forms/src: input uidrivers/win32/widgets


From: btami
Subject: [gnue] r8071 - in trunk/gnue-forms/src: input uidrivers/win32/widgets
Date: Wed, 19 Oct 2005 08:58:33 -0500 (CDT)

Author: btami
Date: 2005-10-19 08:58:32 -0500 (Wed, 19 Oct 2005)
New Revision: 8071

Modified:
   trunk/gnue-forms/src/input/GFKeyMapper.py
   trunk/gnue-forms/src/uidrivers/win32/widgets/_base.py
Log:
fixed quit with ctrl+q in win32 ui

Modified: trunk/gnue-forms/src/input/GFKeyMapper.py
===================================================================
--- trunk/gnue-forms/src/input/GFKeyMapper.py   2005-10-19 11:31:59 UTC (rev 
8070)
+++ trunk/gnue-forms/src/input/GFKeyMapper.py   2005-10-19 13:58:32 UTC (rev 
8071)
@@ -269,6 +269,7 @@
     self.V = -972
     self.C = -971
     self.A = -970
+    self.Q = -969
 
 
 #
@@ -311,6 +312,7 @@
       # (Key, Shifted, Ctrl'd, Meta/Alt'd)
       (vk.A,         False, True,  False) : 'SELECTALL',
       (vk.C,         False, True,  False) : 'COPY',
+      (vk.Q,         False, True,  False) : 'EXIT',
       (vk.V,         False, True,  False) : 'PASTE',
       (vk.X,         False, True,  False) : 'CUT',
       (ord ('a'),    False, True,  False) : 'SELECTALL',

Modified: trunk/gnue-forms/src/uidrivers/win32/widgets/_base.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/win32/widgets/_base.py       2005-10-19 
11:31:59 UTC (rev 8070)
+++ trunk/gnue-forms/src/uidrivers/win32/widgets/_base.py       2005-10-19 
13:58:32 UTC (rev 8071)
@@ -252,7 +252,7 @@
           ShiftDown,
           ControlDown,
           AltDown)
-        
+
       if command == 'NEWLINE':
         action = events.Event('requestKEYPRESS', '\r\n',
                      text='\r\n',
@@ -747,8 +747,11 @@
 
 # Translate from Win32 keystrokes to our virtual keystrokes
 win32KeyTranslations = {
-    vk.C     : 3,        vk.V        : 22,
-    vk.X     : 24,        vk.A        : 1,
+    vk.C      : 3,
+    vk.V      : 22,
+    vk.X      : 24,
+    vk.A      : 1,
+    vk.Q      : 17,
     vk.F1     : win32con.VK_F1,        vk.F2        : win32con.VK_F2,
     vk.F3     : win32con.VK_F3,        vk.F4        : win32con.VK_F4,
     vk.F5     : win32con.VK_F5,        vk.F6        : win32con.VK_F6,





reply via email to

[Prev in Thread] Current Thread [Next in Thread]