fix: mouseDown on appearance view, not FlippedView
This commit is contained in:
@@ -5,6 +5,10 @@
|
|||||||
#import "DrawImage.h" // DrawSeparator
|
#import "DrawImage.h" // DrawSeparator
|
||||||
|
|
||||||
@interface FlippedView : NSView @end
|
@interface FlippedView : NSView @end
|
||||||
|
@implementation FlippedView
|
||||||
|
- (BOOL)isFlipped { return YES; }
|
||||||
|
@end
|
||||||
|
|
||||||
|
|
||||||
@interface SettingsAppearanceView()
|
@interface SettingsAppearanceView()
|
||||||
@property (assign) CGFloat y;
|
@property (assign) CGFloat y;
|
||||||
@@ -246,13 +250,10 @@ static inline NSButton* Checkbox(SettingsAppearanceView *self, CGFloat x, NSStri
|
|||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
// Allow to deselect all NSTextFields (by clicking outside / somewhere on the window)
|
||||||
|
|
||||||
@implementation FlippedView
|
|
||||||
- (BOOL)isFlipped { return YES; }
|
|
||||||
- (void)mouseDown:(NSEvent *)event {
|
- (void)mouseDown:(NSEvent *)event {
|
||||||
// Allow to deselect all NSTextFields (by clicking outside / somewhere on the window)
|
|
||||||
[self.window performSelector:@selector(makeFirstResponder:) withObject:nil afterDelay:0];
|
[self.window performSelector:@selector(makeFirstResponder:) withObject:nil afterDelay:0];
|
||||||
// perform selector because otherwise it will raise an issue of different QoS levels
|
// perform selector because otherwise it will raise an issue of different QoS levels
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
Reference in New Issue
Block a user