dabo Commit
Revision 6268
Date: 2010-12-18 14:57:50 -0800 (Sat, 18 Dec 2010)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6268

Changed:
U   trunk/dabo/ui/uiwx/dPemMixin.py

Log:
Removed Ctrl+A support code for Windows platform, since it works
properly since wxPython 2.8.10 version at last.
It also fixes two tickets, #1384, #1386 and there is no longer
exception raised with controls that doesn't have selectAll() method.

Diff:
Modified: trunk/dabo/ui/uiwx/dPemMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dPemMixin.py     2010-12-18 22:12:02 UTC (rev 6267)
+++ trunk/dabo/ui/uiwx/dPemMixin.py     2010-12-18 22:57:50 UTC (rev 6268)
@@ -584,16 +584,6 @@
 
 
        def __onWxKeyUp(self, evt):
-               if sys.platform.startswith("win"):
-                       # Windows doesn't automatically catch Ctrl+A
-                       ctrl = evt.ControlDown()
-                       kc = evt.GetRawKeyCode()
-                       try:
-                               char = chr(kc).lower()
-                       except ValueError:
-                               char = None
-                       if ctrl and char == "a":
-                               self.selectAll()
                self.raiseEvent(dEvents.KeyUp, evt)
 
 



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to