diff --git a/src/Application.vala b/src/Application.vala index aecbba360..45f557a14 100644 --- a/src/Application.vala +++ b/src/Application.vala @@ -10,13 +10,15 @@ public class Music.Application : Gtk.Application { public const string ACTION_PREVIOUS = "action-previous"; public const string ACTION_SHUFFLE = "action-shuffle"; public const string ACTION_FIND = "action-find"; + public const string ACTION_QUIT = "action-quit"; private const ActionEntry[] ACTION_ENTRIES = { { ACTION_PLAY_PAUSE, action_play_pause, null, "false" }, { ACTION_NEXT, action_next }, { ACTION_PREVIOUS, action_previous }, { ACTION_SHUFFLE, action_shuffle }, - { ACTION_FIND, action_find } + { ACTION_FIND, action_find }, + { ACTION_QUIT, quit } }; private PlaybackManager? playback_manager = null; @@ -43,6 +45,7 @@ public class Music.Application : Gtk.Application { add_action_entries (ACTION_ENTRIES, this); set_accels_for_action (ACTION_PREFIX + ACTION_FIND, {"F"}); + set_accels_for_action (ACTION_PREFIX + ACTION_QUIT, {"Q"}); ((SimpleAction) lookup_action (ACTION_PLAY_PAUSE)).set_enabled (false); ((SimpleAction) lookup_action (ACTION_PLAY_PAUSE)).set_state (false);