Fix old check for unset field.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Mon, 4 Mar 2013 13:54:09 +0000 (14:54 +0100)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Mon, 4 Mar 2013 13:54:09 +0000 (14:54 +0100)
NJKeyInputField.m

index 13aa138beb2baebe053568cc529c56e97ff429ca..b159aa33bb724c5d2e6f9cf01e00159bf2258852 100644 (file)
@@ -27,7 +27,7 @@ CGKeyCode NJKeyInputFieldEmpty = 0xFFFF;
 }
 
 - (BOOL)hasKeyCode {
-    return self.keyCode >= 0;
+    return self.keyCode != NJKeyInputFieldEmpty;
 }
 
 + (NSString *)stringForKeyCode:(CGKeyCode)keyCode {