From 92024b7e5494f9d685fd35f785999124130f8275 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 15 Sep 2011 10:51:53 +0200 Subject: [PATCH] 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 file changed, 1 insertion(+) diff --git a/js/ui/networkAgent.js b/js/ui/networkAgent.js index 43fd9a14e..fad9cd11e 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)