Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Unified Diff: remoting/host/me2me_preference_pane_confirm_pin.mm

Issue 10456048: Set focus to PIN entry box in pref-pane (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/me2me_preference_pane_confirm_pin.mm
diff --git a/remoting/host/me2me_preference_pane_confirm_pin.mm b/remoting/host/me2me_preference_pane_confirm_pin.mm
index 1c091c9d0b72834ae50262dee6a9bbcab50b8568..75afd8917f8199da1ddff8b898df8f099e54edf1 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 {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698