mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
Merge pull request #61 from swt2c/fix_eventfilter
Fix wxEventFilter - don't mark as abstract but remove default constru…
This commit is contained in:
@@ -22,15 +22,15 @@
|
||||
# Update the last user activity
|
||||
t = event.GetEventType()
|
||||
|
||||
if t == wx.EVT_KEY_DOWN or t == wx.EVT_MOTION or \
|
||||
t == wx.EVT_LEFT_DOWN or t == wx.EVT_RIGHT_DOWN or \
|
||||
t == wx.EVT_MIDDLE_DOWN:
|
||||
if t == wx.EVT_KEY_DOWN.typeId or t == wx.EVT_MOTION.typeId or \
|
||||
t == wx.EVT_LEFT_DOWN.typeId or t == wx.EVT_RIGHT_DOWN.typeId or \
|
||||
t == wx.EVT_MIDDLE_DOWN.typeId:
|
||||
|
||||
self.last = wx.DateTime.Now()
|
||||
|
||||
|
||||
# Continue processing the event normally as well.
|
||||
event.Skip()
|
||||
self.Event_Skip
|
||||
|
||||
|
||||
# This function could be called periodically from some timer to
|
||||
@@ -40,4 +40,4 @@
|
||||
|
||||
return wx.DateTime.Now() - diff > self.last
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user