exit application on Escape
This commit is contained in:
parent
060ae4ad5e
commit
d98a07cc4e
@ -219,12 +219,15 @@ class MainWindow(Gtk.Window):
|
||||
if event.keyval == Gdk.keyval_from_name("Up"):
|
||||
self.__go_up()
|
||||
return True
|
||||
elif event.keyval == Gdk.keyval_from_name("Left"):
|
||||
if event.keyval == Gdk.keyval_from_name("Left"):
|
||||
self.__go_back()
|
||||
return True
|
||||
if event.keyval == Gdk.keyval_from_name("Back"):
|
||||
self.__go_back()
|
||||
return True
|
||||
if event.keyval == Gdk.keyval_from_name("Escape"):
|
||||
Gtk.main_quit()
|
||||
return True
|
||||
return False
|
||||
|
||||
def __go_back(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user