menu: fixing input gcode run issue on edit start

Signed-off-by: Janar Sööt <janar.soot@gmail.com>
This commit is contained in:
Janar Sööt 2020-08-25 22:55:37 +03:00 committed by KevinOConnor
parent 37c379ddc5
commit 9459549db3
1 changed files with 4 additions and 0 deletions

View File

@ -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)