mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
- fix deprecation warning for m_shiftDown
This commit is contained in:
committed by
wernerfb
parent
5b606897ca
commit
e36c213dd5
@@ -1254,7 +1254,7 @@ class TimeCtrl(BaseMaskedTextCtrl):
|
||||
def __OnChar(self, event):
|
||||
"""
|
||||
Handler to explicitly look for ':' keyevents, and if found,
|
||||
clear the m_shiftDown field, so it will behave as forward tab.
|
||||
clear the shiftDown field, so it will behave as forward tab.
|
||||
It then calls the base control's _OnChar routine with the modified
|
||||
event instance.
|
||||
"""
|
||||
@@ -1263,7 +1263,7 @@ class TimeCtrl(BaseMaskedTextCtrl):
|
||||
## dbg('keycode:', keycode)
|
||||
if keycode == ord(':'):
|
||||
## dbg('colon seen! removing shift attribute')
|
||||
event.m_shiftDown = False
|
||||
event.shiftDown = False
|
||||
BaseMaskedTextCtrl._OnChar(self, event ) ## handle each keypress
|
||||
## dbg(indent=0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user