correct a mistake in my last fix (pointed out by Wolfgang Lux) that would select the text when clicking out as well as tabbing out

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/testplant_1@29056 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Doug Simons 2009-11-24 18:33:06 +00:00
parent 737245ac31
commit d5241a56ca

View file

@ -591,12 +591,17 @@ static Class textFieldCellClass;
[self sendAction: [self action] to: [self target]];
if (textMovement != nil && movement == NSTabTextMovement)
[_window selectKeyViewFollowingView: self];
{
[_window selectKeyViewFollowingView: self];
if ([_window firstResponder] == _window)
[self selectText: self];
}
else if (textMovement != nil && movement == NSBacktabTextMovement)
[_window selectKeyViewPrecedingView: self];
if ([_window firstResponder] == _window)
[self selectText: self];
{
[_window selectKeyViewPrecedingView: self];
if ([_window firstResponder] == _window)
[self selectText: self];
}
}
}