Return bool from wxWidgetCocoaImpl::doCommandBySelector()

This allows to determine whether the event was handled by wx code and
perform further processing by feeding things back to native code if not.
This commit is contained in:
Stefan Csomor
2021-04-13 17:34:34 +02:00
committed by Vadim Zeitlin
parent d01760ae41
commit 18c45321f4
2 changed files with 11 additions and 6 deletions

View File

@@ -199,7 +199,8 @@ public :
virtual void cursorUpdate(WX_NSEvent event, WXWidget slf, void* _cmd);
virtual void keyEvent(WX_NSEvent event, WXWidget slf, void* _cmd);
virtual void insertText(NSString* text, WXWidget slf, void* _cmd);
virtual void doCommandBySelector(void* sel, WXWidget slf, void* _cmd);
// Returns true if the event was processed by a user-defined event handler.
virtual bool doCommandBySelector(void* sel, WXWidget slf, void* _cmd);
virtual bool acceptsFirstResponder(WXWidget slf, void* _cmd);
virtual bool becomeFirstResponder(WXWidget slf, void* _cmd);
virtual bool resignFirstResponder(WXWidget slf, void* _cmd);