[gnome-shell] network-agent: Allow entries to activate default action
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] network-agent: Allow entries to activate default action
- Date: Mon, 19 Sep 2011 19:30:09 +0000 (UTC)
commit 92024b7e5494f9d685fd35f785999124130f8275
Author: Florian MÃllner <fmuellner gnome org>
Date: Thu Sep 15 10:51:53 2011 +0200
network-agent: Allow entries to activate default action
Currently entries' 'activate' signal is ignored, so hitting enter
does not have any effect, even if all required information has been
entered.
Instead, connect to the 'activate' signal so that hitting enter
behaves as if the "OK" button had been pressed.
https://bugzilla.gnome.org/show_bug.cgi?id=659133
js/ui/networkAgent.js | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/networkAgent.js b/js/ui/networkAgent.js
index 43fd9a1..fad9cd1 100644
--- a/js/ui/networkAgent.js
+++ b/js/ui/networkAgent.js
@@ -115,6 +115,7 @@ NetworkSecretDialog.prototype = {
initialFocusSet = true;
}
+ secret.entry.clutter_text.connect('activate', Lang.bind(this, this._onOk));
secret.entry.clutter_text.connect('text-changed', Lang.bind(this, function() {
secret.value = secret.entry.get_text();
if (secret.validate)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]