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

Unified Diff: ui/views/controls/textfield/textfield.cc

Issue 1898633004: Views: Add new SetFocusBehavior method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 4 years, 8 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
Index: ui/views/controls/textfield/textfield.cc
diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc
index 26e1678b0a70fc930ee31ed87040c75236074450..44e1cf9b200cc3c09bddf918a134b68ba8961cf7 100644
--- a/ui/views/controls/textfield/textfield.cc
+++ b/ui/views/controls/textfield/textfield.cc
@@ -294,7 +294,7 @@ Textfield::Textfield()
set_drag_controller(this);
GetRenderText()->SetFontList(GetDefaultFontList());
SetBorder(std::unique_ptr<Border>(new FocusableBorder()));
- SetFocusable(true);
+ SetFocusBehavior(FocusBehavior::ALWAYS);
if (ViewsDelegate::GetInstance()) {
password_reveal_duration_ =

Powered by Google App Engine
This is Rietveld 408576698