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:
Allan Odgaard
2016-09-08 18:21:40 +02:00
parent cf76d2269e
commit e1cc2ef6f6

View File

@@ -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];