diff options
author | lambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-31 23:21:14 +0000 |
---|---|---|
committer | lambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-31 23:21:14 +0000 |
commit | 0fc56a8fdffbf4bb8833369bd37799d6881949da (patch) | |
tree | cf602b4b5f6773b79f7a3aafadf675ab349a1725 | |
parent | e62b942fb8f89295318cba6c05ed8f872644cf9f (diff) | |
download | chromium_src-0fc56a8fdffbf4bb8833369bd37799d6881949da.zip chromium_src-0fc56a8fdffbf4bb8833369bd37799d6881949da.tar.gz chromium_src-0fc56a8fdffbf4bb8833369bd37799d6881949da.tar.bz2 |
Set focus to PIN entry box in pref-pane
Also set Apply button as default (triggered by Enter key)
BUG=129214
TEST=manual
Review URL: https://chromiumcodereview.appspot.com/10456048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139915 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | remoting/host/me2me_preference_pane_confirm_pin.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/remoting/host/me2me_preference_pane_confirm_pin.mm b/remoting/host/me2me_preference_pane_confirm_pin.mm index 1c091c9..75afd89 100644 --- a/remoting/host/me2me_preference_pane_confirm_pin.mm +++ b/remoting/host/me2me_preference_pane_confirm_pin.mm @@ -30,6 +30,8 @@ - (void)setEnabled:(BOOL)enabled { [apply_button_ setEnabled:enabled]; [pin_ setEnabled:enabled]; + [[[self view] window] makeFirstResponder:pin_]; + [apply_button_ setKeyEquivalent:@"\r"]; } - (void)resetPin { |