mirror of
https://github.com/anufrievroman/waypaper.git
synced 2024-08-16 19:50:46 +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:
|
def on_key_pressed(self, widget, event) -> None:
|
||||||
"""Process various key binding"""
|
"""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()
|
Gtk.main_quit()
|
||||||
|
|
||||||
elif event.keyval == Gdk.KEY_r:
|
elif event.keyval == Gdk.KEY_r:
|
||||||
|
Loading…
Reference in New Issue
Block a user