Skip to content

Commit

Permalink
Fixed: token field first responder flicker when clicking tokens.
Browse files Browse the repository at this point in the history
Without this change, clicking a token in a first responder token field would cause it to momentarily lose first responder status and then immediately gain it back.

This fix makes it so that tokens never try to become the first responder, resulting in a more stable token field as tokens are selected and deselected.
  • Loading branch information
aljungberg committed Dec 11, 2012
1 parent ad5f0a7 commit 9035439
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions AppKit/CPTokenField.j
Expand Up @@ -1284,6 +1284,11 @@ var CPScrollDestinationNone = 0,
return "tokenfield-token";
}

- (BOOL)acceptsFirstResponder
{
return NO;
}

- (id)initWithFrame:(CPRect)frame
{
if (self = [super initWithFrame:frame])
Expand Down

0 comments on commit 9035439

Please sign in to comment.