exit application on Escape

This commit is contained in:
Josh Holtrop 2016-06-27 17:04:14 -04:00
parent 060ae4ad5e
commit d98a07cc4e

View File

@ -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):