From e72308fd9724a99548981da58fad5ae6ee0ad895 Mon Sep 17 00:00:00 2001 From: Ian Jauslin Date: Sat, 16 Oct 2021 19:19:39 -0400 Subject: [PATCH] correct escape behavior --- command_prompt.py | 3 +++ main.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/command_prompt.py b/command_prompt.py index a3955ff..cdcd290 100644 --- a/command_prompt.py +++ b/command_prompt.py @@ -89,6 +89,9 @@ class Command_prompt(Label): self.insert=False self.run_command() self.set_text("") + elif keycode[1]=="escape": + self.insert=False + self.set_text("") # move elif keycode[1]=="left": diff --git a/main.py b/main.py index 4ad1df7..a7097e9 100644 --- a/main.py +++ b/main.py @@ -34,6 +34,8 @@ class Jam_app(App): # disable red circles on right click Config.set('input', 'mouse', 'mouse,disable_multitouch') +# do not exit on escape +Config.set('kivy', 'exit_on_escape', 0) # run if __name__ == '__main__':