[gnome-shell] Add 'r' as an alias to 'restart' in run dialog



commit ecc1f964c917163e67211d3b419c577737f2e1ce
Author: Colin Walters <walters verbum org>
Date:   Wed Aug 26 18:43:44 2009 -0400

    Add 'r' as an alias to 'restart' in run dialog
    
    For even faster turnaround inspection of changes.
    
    Also add a comment about the idle_add in the 'lg' command.

 js/ui/runDialog.js |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/runDialog.js b/js/ui/runDialog.js
index 53a56e9..fd114ad 100644
--- a/js/ui/runDialog.js
+++ b/js/ui/runDialog.js
@@ -36,9 +36,16 @@ RunDialog.prototype = {
 
         this._internalCommands = { 'lg':
                                    Lang.bind(this, function() {
+                                       // Run in an idle to avoid recursive key grab problems
                                        Mainloop.idle_add(function() { Main.createLookingGlass().open(); });
                                    }),
-                                   
+
+                                   'r': Lang.bind(this, function() {
+                                       let global = Shell.Global.get();
+                                       global.reexec_self();
+                                   }),
+
+                                   // Developer brain backwards compatibility
                                    'restart': Lang.bind(this, function() {
                                        let global = Shell.Global.get();
                                        global.reexec_self();



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