mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-10-07 09:33:28 +00:00
NSWindow mouse down fix for first responder
This commit is contained in:
parent
3cfa9e9b88
commit
347e8ffae1
@ -1918,13 +1918,13 @@ NSString * const NSWindowDidAnimateNotification=@"NSWindowDidAnimateNotification
|
||||
case NSLeftMouseDown:{
|
||||
NSView *view=[_backgroundView hitTest:[event locationInWindow]];
|
||||
|
||||
if([view acceptsFirstResponder])
|
||||
[self makeFirstResponder:view];
|
||||
|
||||
// Doing this again seems correct for control cells which put a field editor up when they become first responder but I'm not sure
|
||||
view=[_backgroundView hitTest:[event locationInWindow]];
|
||||
_mouseDownLocationInWindow=[event locationInWindow];
|
||||
/* view gets mouse down event before first responder check */
|
||||
[view mouseDown:event];
|
||||
|
||||
if([view acceptsFirstResponder])
|
||||
[self makeFirstResponder:view];
|
||||
|
||||
_mouseDownLocationInWindow=[event locationInWindow];
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user