From 9459549db3dbee6e3be27a3200c4776a18b53b81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janar=20S=C3=B6=C3=B6t?= Date: Tue, 25 Aug 2020 22:55:37 +0300 Subject: [PATCH] menu: fixing input gcode run issue on edit start MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Janar Sööt --- klippy/extras/display/menu.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/klippy/extras/display/menu.py b/klippy/extras/display/menu.py index 3849eae2..e6a7ec7f 100644 --- a/klippy/extras/display/menu.py +++ b/klippy/extras/display/menu.py @@ -884,6 +884,10 @@ class MenuManager: current = container.selected_item() if isinstance(current, MenuContainer): self.stack_push(current) + elif isinstance(current, MenuInput): + if current.is_editing(): + current.run_script('gcode', event=event) + current.run_script(event) elif isinstance(current, MenuCommand): current.run_script('gcode', event=event) current.run_script(event)