Allow clicking on the key field directly.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Thu, 28 Feb 2013 23:38:59 +0000 (00:38 +0100)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Thu, 28 Feb 2013 23:38:59 +0000 (00:38 +0100)
KeyInputTextView.m

index abff2c6060c56423724950f4d6d4fe1353911bd8..91a2a3453d797d1f2a1494469e16cddbf2166f43 100644 (file)
     }
 }
 
+- (void)mouseDown:(NSEvent *)theEvent {
+    [targetController keyChanged];
+    [self.window makeFirstResponder:self];
+}
+
 - (void)flagsChanged:(NSEvent *)evt {
     self.vk = evt.keyCode;
     [targetController keyChanged];