Commits

Brandon Walkin  committed f96c814

Selectable toolbar - Fixed focus ring staying visible on a tab change

  • Participants
  • Parent commits ca81669

Comments (0)

Files changed (1)

File BWSelectableToolbar.m

 	// Put the selection highlight on the toolbar item
 	[(BWSelectableToolbar *)[self editableToolbar] selectItemAtIndex:anIndex];
 
+	// Clear out the window's first responder
+	[[[self editableToolbar] _window] makeFirstResponder:nil];
+	
 	// Make a new container view and add it to the IB document
 	NSView *containerView = [[[NSView alloc] initWithFrame:[[[[self editableToolbar] _window] contentView] frame]] autorelease];
 	if (inIB)