diff options
author | dilmah@chromium.org <dilmah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-21 09:04:31 +0000 |
---|---|---|
committer | dilmah@chromium.org <dilmah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-21 09:04:31 +0000 |
commit | e275e3461a11dd5e325be3a7788ca7258eb7a6ea (patch) | |
tree | 98c25bde0fd6d93130d28858a99a9ea429e0c25b /chrome/browser/chromeos | |
parent | 4c4c45bff3cf5cf7a07cc271b8f479c197ff7b69 (diff) | |
download | chromium_src-e275e3461a11dd5e325be3a7788ca7258eb7a6ea.zip chromium_src-e275e3461a11dd5e325be3a7788ca7258eb7a6ea.tar.gz chromium_src-e275e3461a11dd5e325be3a7788ca7258eb7a6ea.tar.bz2 |
Make Enter key work on wi-fi password window.
Another attempt (previous one was incorrect).
BUG=http://crosbug.com/6620
TEST=Manual
Review URL: http://codereview.chromium.org/3386013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60033 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos')
-rw-r--r-- | chrome/browser/chromeos/options/wifi_config_view.cc | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/chrome/browser/chromeos/options/wifi_config_view.cc b/chrome/browser/chromeos/options/wifi_config_view.cc index 9a50aa6..4df5d39 100644 --- a/chrome/browser/chromeos/options/wifi_config_view.cc +++ b/chrome/browser/chromeos/options/wifi_config_view.cc @@ -90,14 +90,9 @@ void WifiConfigView::ContentsChanged(views::Textfield* sender, bool WifiConfigView::HandleKeystroke( views::Textfield* sender, const views::Textfield::Keystroke& keystroke) { - if (sender == passphrase_textfield_) { - if (keystroke.GetKeyboardCode() == app::VKEY_RETURN) { - parent_->Accept(); - return true; - } else if (keystroke.GetKeyboardCode() == app::VKEY_ESCAPE) { - parent_->Cancel(); - return true; - } + if (sender == passphrase_textfield_ && + keystroke.GetKeyboardCode() == app::VKEY_RETURN) { + parent_->GetDialogClientView()->AcceptWindow(); } return false; } |