Merge pull request #60 from bitSheriff/feature/quitWithESC

Quit the Appication with ESC
This commit is contained in:
Roman 2024-06-10 06:53:13 -04:00 committed by GitHub
commit 3cb3ef6a79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -512,7 +512,7 @@ class App(Gtk.Window):
def on_key_pressed(self, widget, event) -> None:
"""Process various key binding"""
if event.keyval == Gdk.KEY_q:
if (event.keyval == Gdk.KEY_q) or (event.keyval == Gdk.KEY_Escape):
Gtk.main_quit()
elif event.keyval == Gdk.KEY_r: