Fix responder on backward tabbing

This commit is contained in:
Matthias Neeracher 2008-04-12 22:35:53 +00:00
parent 1355516e6a
commit 2d33c80489

View File

@ -954,7 +954,9 @@ static int8_t sSharpAcc[] = {
NSWindow * win = [self window]; NSWindow * win = [self window];
NSResponder * hasResponder = [win firstResponder]; NSResponder * hasResponder = [win firstResponder];
if ([self editTarget]) if ([self editTarget])
if (hasResponder != [win fieldEditor:NO forObject:nil]) if (hasResponder != [win fieldEditor:NO forObject:nil]
|| [hasResponder delegate] != fFieldEditor
)
[win makeFirstResponder:fFieldEditor]; [win makeFirstResponder:fFieldEditor];
} }