[gnome-shell] runDialog: Accept Enter (keypad) key in addition to Return.



commit a9bdffc9e6e0404c3fa165670aa7253504b37216
Author: Siegfried-Angel Gevatter Pujals <rainct ubuntu com>
Date:   Wed Mar 31 15:29:11 2010 +0200

    runDialog: Accept Enter (keypad) key in addition to Return.

 js/ui/runDialog.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/runDialog.js b/js/ui/runDialog.js
index bbeb849..14edc72 100644
--- a/js/ui/runDialog.js
+++ b/js/ui/runDialog.js
@@ -268,7 +268,7 @@ RunDialog.prototype = {
                 this._setCommandFromHistory(this._historyIndex--);
                 return true;
             }
-            if (symbol == Clutter.Return) {
+            if (symbol == Clutter.Return || symbol == Clutter.KP_Enter) {
                 if (Shell.get_event_state(e) & Clutter.ModifierType.CONTROL_MASK)
                     this._run(o.get_text(), true);
                 else



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