From c9faa30987fb2814dd6f3b8222685bad55337d1c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 27 Oct 2019 01:18:27 +0200 Subject: [PATCH] Remove AcceptsFocus() check from SetFocus() This is partially a workaround for AcceptsFocus() not working as expected for hidden windows under Mac (see the upcoming commits), but also makes sense on its own: the other ports don't check whether the window accepts focus in their SetFocus() implementation and it's not clear why should Mac do this. See #17340. --- src/osx/window_osx.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/osx/window_osx.cpp b/src/osx/window_osx.cpp index 9a2bad7ae0..533e0bbf4c 100644 --- a/src/osx/window_osx.cpp +++ b/src/osx/window_osx.cpp @@ -578,9 +578,6 @@ static bool wxIsWindowOrParentDisabled(wxWindow* w) void wxWindowMac::SetFocus() { - if ( !AcceptsFocus() ) - return ; - if (wxIsWindowOrParentDisabled((wxWindow*) this)) return;