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

Unified Diff: ash/common/system/chromeos/ime_menu/ime_list_view.cc

Issue 2549673003: Scroll IME list to visible when using tab key. (Closed)
Patch Set: Created 4 years 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: ash/common/system/chromeos/ime_menu/ime_list_view.cc
diff --git a/ash/common/system/chromeos/ime_menu/ime_list_view.cc b/ash/common/system/chromeos/ime_menu/ime_list_view.cc
index ff3caab9604440a7c22e0ed33512b40d5893bcae..1452eeb447d518398a7e8a9e0cff73c60718c128 100644
--- a/ash/common/system/chromeos/ime_menu/ime_list_view.cc
+++ b/ash/common/system/chromeos/ime_menu/ime_list_view.cc
@@ -144,6 +144,12 @@ class ImeListItemView : public ActionableView {
return true;
}
+ void OnFocus() override {
+ ActionableView::OnFocus();
+ if (ime_list_view_ && ime_list_view_->scroll_content())
+ ime_list_view_->scroll_content()->ScrollRectToVisible(bounds());
+ }
+
// views::View:
void OnNativeThemeChanged(const ui::NativeTheme* theme) override {
UpdateStyle();
« 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