mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Resolve conflict
This commit is contained in:
commit
1539213eeb
2 changed files with 28 additions and 18 deletions
|
@ -1,4 +1,4 @@
|
|||
2020-05-11 Gregory John Casamento <greg.casamento@gmail.com>
|
||||
2020-05-15 Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Headers/AppKit/AppKit.h: Add to .h file
|
||||
* Headers/AppKit/NSLayoutAnchor.h: Header
|
||||
|
@ -10,6 +10,13 @@
|
|||
* Source/NSLayoutConstraint.m: Layout constraint.
|
||||
* Source/NSLayoutGuide.m: Constraints guide implementation.
|
||||
|
||||
2020-05-14 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSWindow.m (-makeFirstResponder, -sendEvent:): Correct
|
||||
handling of new first responder not becoming first responder.
|
||||
Patch suggested by Josh Freeman <pikopixel@twilightedge.com>.
|
||||
>>>>>>> master
|
||||
|
||||
2020-05-10 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/GSXib5KeyedUnarchiver.m: Clean up NSPathCell decoding.
|
||||
|
|
|
@ -3519,12 +3519,16 @@ checkCursorRectanglesExited(NSView *theView, NSEvent *theEvent, NSPoint lastPoi
|
|||
- (BOOL) makeFirstResponder: (NSResponder*)aResponder
|
||||
{
|
||||
if (_firstResponder == aResponder)
|
||||
return YES;
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
if (aResponder != nil)
|
||||
{
|
||||
if (![aResponder isKindOfClass: responderClass])
|
||||
return NO;
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
if (![aResponder acceptsFirstResponder])
|
||||
{
|
||||
|
@ -3549,9 +3553,8 @@ checkCursorRectanglesExited(NSView *theView, NSEvent *theEvent, NSPoint lastPoi
|
|||
_firstResponder = aResponder;
|
||||
if ((aResponder == nil) || ![_firstResponder becomeFirstResponder])
|
||||
{
|
||||
_firstResponder = self;
|
||||
_firstResponder = self;
|
||||
[_firstResponder becomeFirstResponder];
|
||||
return (aResponder == nil);
|
||||
}
|
||||
|
||||
return YES;
|
||||
|
@ -3956,21 +3959,21 @@ checkCursorRectanglesExited(NSView *theView, NSEvent *theEvent, NSPoint lastPoi
|
|||
{
|
||||
DESTROY(_lastLeftMouseDownView);
|
||||
}
|
||||
// Don't make buttons first responder otherwise they cannot
|
||||
// send actions to the current first responder.
|
||||
// TODO: First responder status update would more cleanly
|
||||
// handled by -mouseDown in each control subclass (Mac OS X
|
||||
// seems to do that).
|
||||
if (_firstResponder != v && ![v isKindOfClass: [NSButton class]])
|
||||
{
|
||||
// Only try to set first responder, when the view wants it.
|
||||
if ([v acceptsFirstResponder] && ![self makeFirstResponder: v])
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (wasKey == YES || [v acceptsFirstMouse: theEvent] == YES)
|
||||
{
|
||||
// Don't make buttons first responder otherwise they cannot
|
||||
// send actions to the current first responder.
|
||||
// TODO: First responder status update would more cleanly
|
||||
// handled by -mouseDown in each control subclass (Mac OS X
|
||||
// seems to do that).
|
||||
if (_firstResponder != v && ![v isKindOfClass: [NSButton class]])
|
||||
{
|
||||
// Only try to set first responder, when the view wants it.
|
||||
if ([v acceptsFirstResponder] && ![self makeFirstResponder: v])
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
if ([NSHelpManager isContextHelpModeActive])
|
||||
{
|
||||
[v helpRequested: theEvent];
|
||||
|
|
Loading…
Reference in a new issue