Don't set hidden field editor as first responder

This commit is contained in:
Matthias Neeracher 2012-05-20 02:04:53 +02:00
parent 50f1c3c4ca
commit e50d0dc073

View File

@ -907,7 +907,7 @@ const float kSemiFloor = -1.0f*kLineH;
{
NSWindow * win = [self window];
NSResponder * hasResponder = [win firstResponder];
if ([self editTarget])
if ([self editTarget] && ![[self editTarget] hidden])
if (hasResponder != [win fieldEditor:NO forObject:nil]
|| [(id)hasResponder delegate] != fFieldEditor
)