From 5091f5aa3454aee49f3ad74488f26877f24c9de7 Mon Sep 17 00:00:00 2001 From: jpirnay Date: Wed, 23 Oct 2024 21:27:27 +0200 Subject: [PATCH] propagate previously swallowed events --- meerk40t/gui/navigationpanels.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meerk40t/gui/navigationpanels.py b/meerk40t/gui/navigationpanels.py index eb5c4f466f..45d0581deb 100644 --- a/meerk40t/gui/navigationpanels.py +++ b/meerk40t/gui/navigationpanels.py @@ -366,9 +366,11 @@ def start_timer(self, button=None): self.timer.Start(int(self.interval * 1000)) def on_button_lost(self, event=None): + event.Skip() self.stop_timer(action=False) def on_button_down(self, event=None): + event.Skip() self.stop_timer(action=False) if event is None: return @@ -377,6 +379,7 @@ def on_button_down(self, event=None): def on_button_up(self, event=None): # That consumes the event and a wx.EVT_BUTTON will not be raised + event.Skip() self.stop_timer(action=True) def on_button_click(self, event=None): @@ -384,6 +387,7 @@ def on_button_click(self, event=None): # (i.e. return, space) while the button has focus if event is None: return + event.Skip() button = event.GetEventObject() self.active_button = button self.stop_timer(action=True) @@ -942,7 +946,6 @@ def __init__(self, *args, context=None, **kwds): self.button_confine = wxBitmapButton(self, wx.ID_ANY) self.__set_properties() self.__do_layout() - self.timer = TimerButtons(self) self.timer.add_button(self.button_navigate_down, self.jog_down) self.timer.add_button(self.button_navigate_left, self.jog_left)