diff options
Diffstat (limited to 'ui/views/accessible_pane_view.h')
-rw-r--r-- | ui/views/accessible_pane_view.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ui/views/accessible_pane_view.h b/ui/views/accessible_pane_view.h index f15bbed..982cb04 100644 --- a/ui/views/accessible_pane_view.h +++ b/ui/views/accessible_pane_view.h @@ -88,9 +88,20 @@ class VIEWS_EXPORT AccessiblePaneView : public View, FocusManager* focus_manager() const { return focus_manager_; } + // When finishing navigation by pressing ESC, it is allowed to surrender the + // focus to another window if if |allow| is set and no previous view can be + // found. + void set_allow_deactivate_on_esc(bool allow) { + allow_deactivate_on_esc_ = allow; + } + private: bool pane_has_focus_; + // If true, the panel should be de-activated upon escape when no active view + // is known where to return to. + bool allow_deactivate_on_esc_; + base::WeakPtrFactory<AccessiblePaneView> method_factory_; // Save the focus manager rather than calling GetFocusManager(), |