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

This commit is contained in:
Siegfried-Angel Gevatter Pujals 2010-03-31 15:29:11 +02:00
parent 68723f191c
commit a9bdffc9e6

View File

@ -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