[gnome-klotski/mcatanzaro/ctrlq: 4/4] Restore Ctrl+Q quit shortcut
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-klotski/mcatanzaro/ctrlq: 4/4] Restore Ctrl+Q quit shortcut
- Date: Mon, 11 Mar 2019 15:07:42 +0000 (UTC)
commit 7055973865f660eeb4ea262be69a5f92a86d7211
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Sun Mar 10 13:42:19 2019 -0500
Restore Ctrl+Q quit shortcut
Fixes #7
src/gnome-klotski.vala | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/gnome-klotski.vala b/src/gnome-klotski.vala
index b621739..0bf3c44 100644
--- a/src/gnome-klotski.vala
+++ b/src/gnome-klotski.vala
@@ -75,6 +75,8 @@ public class Klotski : Gtk.Application
set_accels_for_action ("win.next-puzzle", {"Down"}); // TODO a weird behaviour exists when you
first change puzzle pack, then go to
set_accels_for_action ("win.prev-pack", {"Page_Up"}); // TODO the first/last one, click on a
puzzle, and immediatly hit Up or Down arrows.
set_accels_for_action ("win.next-pack", {"Page_Down"}); // TODO that makes these keybindings
sometimes act strangely, but they’re good.
+
+ set_accels_for_action ("app.quit", {"<Primary>q"});
}
protected override void activate ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]