macOS: Don't interfere with native views' drag and drop
wxWidgetCocoaImpl injects implementation of several NSDraggingDestination protocol methods, but never called their base implementations, presumably on the assumption that drag and drop is explicitly supported and not builtin into native NSView-derived controls. This prevented native builtin d'n'd in e.g. NSTextView (text can be copied and inserted by dragging it to the insertion point) from working. Fixed by always calling base implementation. Closes https://github.com/wxWidgets/wxWidgets/pull/2320
This commit is contained in:
committed by
Vadim Zeitlin
parent
dc5f1711f2
commit
db3e54b3dc
@@ -372,7 +372,9 @@ public:
|
||||
typedef void (*wxOSX_EventHandlerPtr)(NSView* self, SEL _cmd, NSEvent *event);
|
||||
typedef BOOL (*wxOSX_PerformKeyEventHandlerPtr)(NSView* self, SEL _cmd, NSEvent *event);
|
||||
typedef BOOL (*wxOSX_FocusHandlerPtr)(NSView* self, SEL _cmd);
|
||||
|
||||
typedef NSDragOperation (*wxOSX_DraggingEnteredOrUpdatedHandlerPtr)(NSView *self, SEL _cmd, void *sender);
|
||||
typedef void (*wxOSX_DraggingExitedHandlerPtr)(NSView *self, SEL _cmd, void *sender);
|
||||
typedef BOOL (*wxOSX_PerformDragOperationHandlerPtr)(NSView *self, SEL _cmd, void *sender);
|
||||
|
||||
WXDLLIMPEXP_CORE NSScreen* wxOSXGetMenuScreen();
|
||||
WXDLLIMPEXP_CORE NSRect wxToNSRect( NSView* parent, const wxRect& r );
|
||||
|
Reference in New Issue
Block a user