mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Make OakKeyEquivalentView opaque
This is a minor performance advantage and prevents mouse-down events from moving the window (when the control is used in a textured window).
This commit is contained in:
@@ -168,6 +168,11 @@ static NSString* const kRecordingPlaceholderString = @"…";
|
||||
return self.showClearButton && [anEvent type] == NSLeftMouseDown && NSMouseInRect([self convertPoint:[anEvent locationInWindow] fromView:nil], _clearButtonRect, [self isFlipped]);
|
||||
}
|
||||
|
||||
- (BOOL)isOpaque
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (BOOL)acceptsFirstMouse:(NSEvent*)anEvent
|
||||
{
|
||||
return YES;
|
||||
|
||||
Reference in New Issue
Block a user