diff --git a/libcef/browser/views/window_impl.cc b/libcef/browser/views/window_impl.cc index 57bb31687..a63b9bf6d 100644 --- a/libcef/browser/views/window_impl.cc +++ b/libcef/browser/views/window_impl.cc @@ -500,8 +500,8 @@ bool CefWindowImpl::AcceleratorPressed(const ui::Accelerator& accelerator) { } bool CefWindowImpl::CanHandleAccelerators() const { - if (delegate() && widget_) { - return widget_->IsActive(); + if (delegate() && widget_ && root_view()) { + return root_view()->CanHandleAccelerators(); } return false; }