mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 02:04:20 +00:00
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:
parent
737245ac31
commit
d5241a56ca
1 changed files with 10 additions and 5 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue