Skip to content

Commit 9b2e9da

Browse files
committed
Fix double handling of key events
1 parent 8adf865 commit 9b2e9da

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

timetagger/app/front.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,6 +1551,11 @@ def _on_key(self, e):
15511551
self._handle_button_press("guide")
15521552
else:
15531553
return
1554+
1555+
# Avoid double handling by canvas and window both
1556+
if e.currentTarget is self._canvas.node:
1557+
e.stopPropagation()
1558+
15541559
e.preventDefault()
15551560

15561561
def _handle_button_press(self, action):

0 commit comments

Comments
 (0)