correct escape behavior

This commit is contained in:
Ian Jauslin 2021-10-16 19:19:39 -04:00
parent e83acfd5da
commit e72308fd97
2 changed files with 5 additions and 0 deletions

View File

@ -89,6 +89,9 @@ class Command_prompt(Label):
self.insert=False self.insert=False
self.run_command() self.run_command()
self.set_text("") self.set_text("")
elif keycode[1]=="escape":
self.insert=False
self.set_text("")
# move # move
elif keycode[1]=="left": elif keycode[1]=="left":

View File

@ -34,6 +34,8 @@ class Jam_app(App):
# disable red circles on right click # disable red circles on right click
Config.set('input', 'mouse', 'mouse,disable_multitouch') Config.set('input', 'mouse', 'mouse,disable_multitouch')
# do not exit on escape
Config.set('kivy', 'exit_on_escape', 0)
# run # run
if __name__ == '__main__': if __name__ == '__main__':