mirror of
https://github.com/anufrievroman/waypaper.git
synced 2024-07-14 19:30:31 +03:00
Merge pull request #60 from bitSheriff/feature/quitWithESC
Quit the Appication with ESC
This commit is contained in:
commit
3cb3ef6a79
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user