summaryrefslogtreecommitdiffstats
path: root/views/view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/view.cc')
-rw-r--r--views/view.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/views/view.cc b/views/view.cc
index d3a9b98..69cf67f 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -264,7 +264,7 @@ void View::SetEnabled(bool state) {
}
bool View::IsFocusable() const {
- return focusable_ && IsEnabled() && IsVisible();
+ return focusable_ && IsEnabled() && IsVisibleInRootView();
}
void View::SetFocusable(bool focusable) {
@@ -272,7 +272,8 @@ void View::SetFocusable(bool focusable) {
}
bool View::IsAccessibilityFocusable() const {
- return (focusable_ || accessibility_focusable_) && IsEnabled() && IsVisible();
+ return (focusable_ || accessibility_focusable_) && IsEnabled() &&
+ IsVisibleInRootView();
}
FocusManager* View::GetFocusManager() {