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__':