Index: ui/aura/window.cc |
diff --git a/ui/aura/window.cc b/ui/aura/window.cc |
index 915623bc094aaa4b8988f599c998a53d49538c9b..4f904ddc4dc9ab33d096f0e3ef8d5557cce618f2 100644 |
--- a/ui/aura/window.cc |
+++ b/ui/aura/window.cc |
@@ -373,8 +373,7 @@ bool Window::HasFocus() const { |
// propagation of events that would otherwise be targeted at windows behind it. |
// We then perform this same check on every window up to the root. |
bool Window::CanFocus() const { |
- // TODO(beng): Figure out how to consult the delegate wrt. focusability also. |
- if (!IsVisible() || !parent_) |
+ if (!IsVisible() || !parent_ || (delegate_ && !delegate_->CanFocus())) |
return false; |
Windows::const_iterator i = std::find(parent_->children().begin(), |