| Index: ui/views/widget/widget.cc
|
| diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
|
| index 4bf2a850f05b01e105f8afe61e534f34ea5077da..0253748012bc25402dee2e070706f89afe79b75b 100644
|
| --- a/ui/views/widget/widget.cc
|
| +++ b/ui/views/widget/widget.cc
|
| @@ -86,10 +86,15 @@ class DefaultWidgetDelegate : public WidgetDelegate {
|
| virtual const Widget* GetWidget() const OVERRIDE {
|
| return widget_;
|
| }
|
| -
|
| virtual bool CanActivate() const OVERRIDE {
|
| return can_activate_;
|
| }
|
| + virtual bool ShouldAdvanceFocusToParent() const OVERRIDE {
|
| + // In most situations where a Widget is used without a delegate the Widget
|
| + // is used as a container, so that we want focus to advance to the parent. A
|
| + // good example of this is the find bar.
|
| + return true;
|
| + }
|
|
|
| private:
|
| Widget* widget_;
|
|
|