diff --git a/brightray/browser/views/inspectable_web_contents_view_views.cc b/brightray/browser/views/inspectable_web_contents_view_views.cc index 09c9ab6f8012..1a438f200e3a 100644 --- a/brightray/browser/views/inspectable_web_contents_view_views.cc +++ b/brightray/browser/views/inspectable_web_contents_view_views.cc @@ -142,7 +142,9 @@ bool InspectableWebContentsViewViews::IsDevToolsViewShowing() { } bool InspectableWebContentsViewViews::IsDevToolsViewFocused() { - if (devtools_web_view_) + if (devtools_window_web_view_) + return devtools_window_web_view_->HasFocus(); + else if (devtools_web_view_) return devtools_web_view_->HasFocus(); else return false;