[gnome-klotski/mcatanzaro/ctrlq] Restore Ctrl+Q quit shortcut



commit 81bd955b125b44769e5549ad43d935486aa63a97
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]