diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/controls/tabbed_pane/tabbed_pane.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/views/controls/tabbed_pane/tabbed_pane.cc b/views/controls/tabbed_pane/tabbed_pane.cc index 1a7b0f0..0207840 100644 --- a/views/controls/tabbed_pane/tabbed_pane.cc +++ b/views/controls/tabbed_pane/tabbed_pane.cc @@ -108,8 +108,13 @@ void TabbedPane::Layout() { void TabbedPane::Focus() { // Forward the focus to the wrapper. - if (native_tabbed_pane_) + if (native_tabbed_pane_) { native_tabbed_pane_->SetFocus(); + + View* selected_tab = GetSelectedTab(); + if (selected_tab) + selected_tab->NotifyAccessibilityEvent(AccessibilityTypes::EVENT_FOCUS); + } else View::Focus(); // Will focus the RootView window (so we still get keyboard // messages). |