Add Ctrl-Q keyboard shortcut to quit application

This commit is contained in:
buckmelanoma
2022-08-02 15:41:48 +00:00
committed by Sumner Evans
parent 5ec752d6c0
commit 6a11a3aefd

View File

@@ -946,6 +946,11 @@ class SublimeMusicApp(Gtk.Application):
window.search_entry.grab_focus()
return False
if event.keyval == 113 and event.state & Gdk.ModifierType.CONTROL_MASK:
# Ctrl + Q
window.destroy()
return False
# Allow spaces to work in the text entry boxes.
if (
window.search_entry.has_focus()