From ecc1f964c917163e67211d3b419c577737f2e1ce Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 26 Aug 2009 18:43:44 -0400 Subject: [PATCH] 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 file changed, 8 insertions(+), 1 deletion(-) diff --git a/js/ui/runDialog.js b/js/ui/runDialog.js index 53a56e95a..fd114adf9 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();