projects
/
enjoyable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b370776
)
Click when active to deactivate.
author
Joe Wreschnig
<joe.wreschnig@gmail.com>
Sat, 9 Mar 2013 18:57:03 +0000
(19:57 +0100)
committer
Joe Wreschnig
<joe.wreschnig@gmail.com>
Sat, 9 Mar 2013 18:57:03 +0000
(19:57 +0100)
Classes/NJKeyInputField.m
patch
|
blob
|
history
diff --git
a/Classes/NJKeyInputField.m
b/Classes/NJKeyInputField.m
index ec081505c13ce92a28b411617d7ac2c479d16aec..c9b2f4d1bf5b1fccaba366e06a108bf3ed0fee78 100644
(file)
--- 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];
}