From 96f6485a7f40a9afa0c215ce644e7175e9cf3ce1 Mon Sep 17 00:00:00 2001 From: Frank <472730949@qq.com> Date: Mon, 29 Feb 2016 17:46:31 +0800 Subject: [PATCH] Resolve the problem that the same row lost focus can not be editable under the overlay mode Resolve the problem that the same row lost focus can not be editable under the overlay mode --- Backlight/AAABacklightView.m | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Backlight/AAABacklightView.m b/Backlight/AAABacklightView.m index c75f76b..fa19b02 100644 --- a/Backlight/AAABacklightView.m +++ b/Backlight/AAABacklightView.m @@ -55,4 +55,14 @@ - (void)setRadiusEnabled:(BOOL)enabled [self setNeedsDisplay:YES]; } +/** resolve the problem that the same row lost focus can not be editable under the overlay mode */ +- (NSView *)hitTest:(NSPoint)aPoint +{ + return nil; +} + +- (BOOL)acceptsFirstResponder { + return NO; +} + @end