Created
May 29, 2025 15:30
-
-
Save rkitover/ea85fa30bbb3e6378e845c7934e3e01d to your computer and use it in GitHub Desktop.
wxWidgets patch for macOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/src/osx/cocoa/window.mm | |
+++ b/src/osx/cocoa/window.mm | |
@@ -2370,11 +2370,12 @@ bool wxWidgetCocoaImpl::acceptsFirstResponder(WXWidget slf, void *_cmd) | |
{ | |
if ( HasUserKeyHandling() ) | |
return m_wxPeer->AcceptsFocus(); | |
- else | |
- { | |
- wxOSX_FocusHandlerPtr superimpl = (wxOSX_FocusHandlerPtr) [[slf superclass] instanceMethodForSelector:(SEL)_cmd]; | |
- return superimpl(slf, (SEL)_cmd); | |
- } | |
+ return true; | |
+// else | |
+// { | |
+// wxOSX_FocusHandlerPtr superimpl = (wxOSX_FocusHandlerPtr) [[slf superclass] instanceMethodForSelector:(SEL)_cmd]; | |
+// return superimpl(slf, (SEL)_cmd); | |
+// } | |
} | |
bool wxWidgetCocoaImpl::becomeFirstResponder(WXWidget slf, void *_cmd) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment