Browse Source

fix: call SetCanActivate in setFocusable (#21856)

Cheng Zhao 5 years ago
parent
commit
7a65aebcfd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      atom/browser/native_window_views.cc

+ 1 - 0
atom/browser/native_window_views.cc

@@ -922,6 +922,7 @@ void NativeWindowViews::SetContentProtection(bool enable) {
 }
 
 void NativeWindowViews::SetFocusable(bool focusable) {
+  widget()->widget_delegate()->SetCanActivate(focusable);
 #if defined(OS_WIN)
   LONG ex_style = ::GetWindowLong(GetAcceleratedWidget(), GWL_EXSTYLE);
   if (focusable)