rerouting ordinary selectors to webview (#23197)

see #23151
This commit is contained in:
Stefan Csomor 2023-01-30 20:42:01 +01:00 committed by GitHub
parent ec25a5c83c
commit 6eb6c52bee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -653,7 +653,9 @@ void wxWebViewWebKit::RegisterHandler(wxSharedPtr<wxWebViewHandler> handler)
- (void)doCommandBySelector:(SEL)aSelector
{
wxWidgetCocoaImpl* impl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( self );
if (impl)
if (aSelector != @selector(noop:))
[super doCommandBySelector:aSelector];
else if (impl)
impl->doCommandBySelector(aSelector, self, _cmd);
}