From 20830574ccb3ed84de8e14d351f1faf74538c25b Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Sat, 9 Mar 2013 19:57:03 +0100 Subject: [PATCH] Click when active to deactivate. --- Classes/NJKeyInputField.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Classes/NJKeyInputField.m b/Classes/NJKeyInputField.m index ec08150..c9b2f4d 100644 --- a/Classes/NJKeyInputField.m +++ b/Classes/NJKeyInputField.m @@ -193,7 +193,9 @@ CGKeyCode NJKeyInputFieldEmpty = 0xFFFF; } - (void)mouseDown:(NSEvent *)theEvent { - if (self.acceptsFirstResponder) + if (self.window.firstResponder == self) + [self.window makeFirstResponder:nil]; + else if (self.acceptsFirstResponder) [self.window makeFirstResponder:self]; } -- 2.30.2