[gnome-shell] runDialog: Accept Enter (keypad) key in addition to Return.
- From: Siegfried-Angel Gevatter Pujals <sgevatter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] runDialog: Accept Enter (keypad) key in addition to Return.
- Date: Wed, 31 Mar 2010 13:32:33 +0000 (UTC)
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]