[lightsoff] Add missing keyboard accelerators (F1, Ctrl+N, Ctrl+Q)



commit 70ababa9c288a098810918e0ba20ec36faaf244d
Author: Jeremy Bicha <jbicha ubuntu com>
Date:   Sun Nov 4 01:10:21 2012 -0400

    Add missing keyboard accelerators (F1, Ctrl+N, Ctrl+Q)
    
    https://bugzilla.gnome.org/show_bug.cgi?id=687549

 src/lightsoff.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/lightsoff.vala b/src/lightsoff.vala
index 89aed49..1f65b96 100644
--- a/src/lightsoff.vala
+++ b/src/lightsoff.vala
@@ -22,6 +22,9 @@ public class LightsOff : Gtk.Application
         base.startup ();
 
         add_action_entries (action_entries, this);
+        add_accelerator ("<Primary>n", "app.new-game", null);
+        add_accelerator ("F1", "app.help", null);
+        add_accelerator ("<Primary>q", "app.quit", null);
 
         var menu = new Menu ();
         var section = new Menu ();



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