mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
macOS Accessibility: Pass through accessibility hit test to accessible view in MouseForwardingNSOpenGLViewClass
This commit is contained in:
parent
ddaa091103
commit
6eac100a79
1 changed files with 5 additions and 3 deletions
|
|
@ -256,9 +256,10 @@ public:
|
|||
{
|
||||
MouseForwardingNSOpenGLViewClass() : ObjCClass<NSOpenGLView> ("JUCEGLView_")
|
||||
{
|
||||
addMethod (@selector (rightMouseDown:), rightMouseDown);
|
||||
addMethod (@selector (rightMouseUp:), rightMouseUp);
|
||||
addMethod (@selector (acceptsFirstMouse:), acceptsFirstMouse);
|
||||
addMethod (@selector (rightMouseDown:), rightMouseDown);
|
||||
addMethod (@selector (rightMouseUp:), rightMouseUp);
|
||||
addMethod (@selector (acceptsFirstMouse:), acceptsFirstMouse);
|
||||
addMethod (@selector (accessibilityHitTest:), accessibilityHitTest);
|
||||
|
||||
registerClass();
|
||||
}
|
||||
|
|
@ -267,6 +268,7 @@ public:
|
|||
static void rightMouseDown (id self, SEL, NSEvent* ev) { [[(NSOpenGLView*) self superview] rightMouseDown: ev]; }
|
||||
static void rightMouseUp (id self, SEL, NSEvent* ev) { [[(NSOpenGLView*) self superview] rightMouseUp: ev]; }
|
||||
static BOOL acceptsFirstMouse (id, SEL, NSEvent*) { return YES; }
|
||||
static id accessibilityHitTest (id self, SEL, NSPoint p) { return [[(NSOpenGLView*) self superview] accessibilityHitTest: p]; }
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue