fix: call SetCanActivate in setFocusable (#21856)

This commit is contained in:
Cheng Zhao
2020-01-22 14:45:15 +09:00
committed by GitHub
parent dffecfaf59
commit 7a65aebcfd

View File

@@ -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)