summaryrefslogtreecommitdiffstats
path: root/views/controls/native_control_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/native_control_win.cc')
-rw-r--r--views/controls/native_control_win.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/views/controls/native_control_win.cc b/views/controls/native_control_win.cc
index 217fee1..d9cd230 100644
--- a/views/controls/native_control_win.cc
+++ b/views/controls/native_control_win.cc
@@ -96,7 +96,12 @@ void NativeControlWin::Focus() {
// Since we are being wrapped by a view, accessibility should receive
// the super class as the focused view.
View* parent_view = GetParent();
- if (parent_view->HasFocus())
+
+ // Due to some controls not behaving as expected without having
+ // a native win32 control, we exclude the following from sending
+ // their IAccessible as focus events.
+ if (parent_view->GetClassName() != views::Combobox::kViewClassName &&
+ parent_view->HasFocus())
parent_view->NotifyAccessibilityEvent(AccessibilityTypes::EVENT_FOCUS);
}