From 68fe4de58269fc00e70e59453e05098ccd4341a2 Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Fri, 1 Mar 2013 00:38:59 +0100 Subject: [PATCH] Allow clicking on the key field directly. --- KeyInputTextView.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/KeyInputTextView.m b/KeyInputTextView.m index abff2c6..91a2a34 100644 --- a/KeyInputTextView.m +++ b/KeyInputTextView.m @@ -187,6 +187,11 @@ } } +- (void)mouseDown:(NSEvent *)theEvent { + [targetController keyChanged]; + [self.window makeFirstResponder:self]; +} + - (void)flagsChanged:(NSEvent *)evt { self.vk = evt.keyCode; [targetController keyChanged]; -- 2.30.2