]> git.saurik.com Git - wxWidgets.git/commitdiff
Can't call ShiftDown when it is a CommandEvent
authorRobin Dunn <robin@alldunn.com>
Tue, 8 Jun 2004 00:09:51 +0000 (00:09 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 8 Jun 2004 00:09:51 +0000 (00:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/masked/maskededit.py

index 3bde5a3ca58ac9e7b5e53d425f924a64388a3a08..a38facc38f19ecef54be5cd6dd536063811d1c7e 100644 (file)
@@ -3091,7 +3091,7 @@ class MaskedEditMixin:
     def _OnCtrl_A(self,event=None):
         """ Handles ctrl-a keypress in control. Should return False to skip other processing. """
         end = self._goEnd(getPosOnly=True)
-        if not event or event.ShiftDown():
+        if not event or (isinstance(event, wx.KeyEvent) and event.ShiftDown()):
             wx.CallAfter(self._SetInsertionPoint, 0)
             wx.CallAfter(self._SetSelection, 0, self._masklength)
         else: