Return quick on unmatched event type

fsp_feeds
Tyler Goodlet 2021-08-20 11:37:07 -04:00
parent 58afe07a88
commit 2b8c3f69b1
1 changed files with 46 additions and 49 deletions

View File

@ -105,14 +105,10 @@ class EventRelay(QtCore.QObject):
etype = ev.type() etype = ev.type()
# TODO: turn this on and see what we can filter by default (such # TODO: turn this on and see what we can filter by default (such
# as mouseWheelEvent). # as mouseWheelEvent).
# print(f'ev: {ev}') print(f'ev: {ev}')
if etype in self._event_types: if etype not in self._event_types:
# ev.accept() return False
# TODO: what's the right way to allow this?
# if ev.isAutoRepeat():
# ev.ignore()
# XXX: we unpack here because apparently doing it # XXX: we unpack here because apparently doing it
# after pop from the mem chan isn't showing the same # after pop from the mem chan isn't showing the same
@ -141,6 +137,7 @@ class EventRelay(QtCore.QObject):
# tick, thus special handling or copying must be done. # tick, thus special handling or copying must be done.
elif etype in MOUSE_EVENTS: elif etype in MOUSE_EVENTS:
# print('f mouse event: {ev}')
msg = MouseMsg( msg = MouseMsg(
event=ev, event=ev,
etype=etype, etype=etype,