Add Ctrl-Q keyboard shortcut to quit application
This commit is contained in:

committed by
Sumner Evans

parent
5ec752d6c0
commit
6a11a3aefd
@@ -946,6 +946,11 @@ class SublimeMusicApp(Gtk.Application):
|
|||||||
window.search_entry.grab_focus()
|
window.search_entry.grab_focus()
|
||||||
return False
|
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.
|
# Allow spaces to work in the text entry boxes.
|
||||||
if (
|
if (
|
||||||
window.search_entry.has_focus()
|
window.search_entry.has_focus()
|
||||||
|
Reference in New Issue
Block a user