[gnome-tetravex] Add Ctrl+W accelerator for Quit



commit aa4d8b23ab555e99d52e2fbd6e25d4f029d703ec
Author: Jeremy Bicha <jbicha ubuntu com>
Date:   Sun Dec 9 16:59:21 2018 -0500

    Add Ctrl+W accelerator for Quit
    
    Ctrl+Q is the primary keyboard shortcut.
    
    Since GNOME Tetravex is a single instance (single window) app,
    it makes sense for the "close window" keyboard shortcut to
    quit the app too.

 src/gnome-tetravex.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gnome-tetravex.vala b/src/gnome-tetravex.vala
index 74d0689..f1d18f0 100644
--- a/src/gnome-tetravex.vala
+++ b/src/gnome-tetravex.vala
@@ -75,7 +75,7 @@ public class Tetravex : Gtk.Application
         set_accels_for_action ("app.new-game", {"<Primary>n"});
         set_accels_for_action ("app.pause", {"Pause"});
         set_accels_for_action ("app.help", {"F1"});
-        set_accels_for_action ("app.quit", {"<Primary>q"});
+        set_accels_for_action ("app.quit", {"<Primary>q", "<Primary>w"});
         set_accels_for_action ("app.move-up", {"<Primary>Up"});
         set_accels_for_action ("app.move-down", {"<Primary>Down"});
         set_accels_for_action ("app.move-left", {"<Primary>Left"});


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]