From: Joe Wreschnig Date: Thu, 28 Feb 2013 23:38:59 +0000 (+0100) Subject: Allow clicking on the key field directly. X-Git-Tag: version-1.0~81 X-Git-Url: https://git.yukkurigames.com/?a=commitdiff_plain;h=68fe4de58269fc00e70e59453e05098ccd4341a2;p=enjoyable.git Allow clicking on the key field directly. --- 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];