Stop handling performKeyEquivalent: in wxOSX
We can't handle the accelerators (known as "key equivalents" in Cocoa) in this function because it is called for the views in top to bottom order, while wx semantics is for accelerators to be handled in the accelerator table closest to the focused window. So just remove this code and rely on accelerator handling happening in wxWindowMac::OSXHandleKeyEvent() instead. Closes #13937.
This commit is contained in:
@@ -185,7 +185,6 @@ public :
|
||||
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);
|
||||
virtual bool performKeyEquivalent(WX_NSEvent event, 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);
|
||||
|
Reference in New Issue
Block a user