mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Don’t allow first responder for remove button in table view
The table view (currently) refuse first responder, but this will change, hence why it is important that our remove button refuses (for proper key view loop).
This commit is contained in:
@@ -101,6 +101,7 @@ static NSUInteger const kOakSourceIndexFavorites = 1;
|
||||
{
|
||||
NSButton* removeButton = [NSButton new];
|
||||
[[removeButton cell] setControlSize:NSSmallControlSize];
|
||||
removeButton.refusesFirstResponder = YES;
|
||||
removeButton.bezelStyle = NSRoundRectBezelStyle;
|
||||
removeButton.buttonType = NSMomentaryPushInButton;
|
||||
removeButton.image = [NSImage imageNamed:NSImageNameRemoveTemplate];
|
||||
|
||||
Reference in New Issue
Block a user