Can't call ShiftDown when it is a CommandEvent
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
356f3c650c
commit
e72d7b7716
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user