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()
# TODO: turn this on and see what we can filter by default (such
# as mouseWheelEvent).
# print(f'ev: {ev}')
print(f'ev: {ev}')
if etype in self._event_types:
# ev.accept()
# TODO: what's the right way to allow this?
# if ev.isAutoRepeat():
# ev.ignore()
if etype not in self._event_types:
return False
# XXX: we unpack here because apparently doing it
# 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.
elif etype in MOUSE_EVENTS:
# print('f mouse event: {ev}')
msg = MouseMsg(
event=ev,
etype=etype,