correct escape behavior
This commit is contained in:
parent
e83acfd5da
commit
e72308fd97
@ -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":
|
||||||
|
2
main.py
2
main.py
@ -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__':
|
||||||
|
Loading…
Reference in New Issue
Block a user