From 30e895677773cc087a4e9a75abc99d0c1233dddc Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Mon, 4 Mar 2013 14:54:09 +0100 Subject: [PATCH] Fix old check for unset field. --- NJKeyInputField.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NJKeyInputField.m b/NJKeyInputField.m index 13aa138..b159aa3 100644 --- a/NJKeyInputField.m +++ b/NJKeyInputField.m @@ -27,7 +27,7 @@ CGKeyCode NJKeyInputFieldEmpty = 0xFFFF; } - (BOOL)hasKeyCode { - return self.keyCode >= 0; + return self.keyCode != NJKeyInputFieldEmpty; } + (NSString *)stringForKeyCode:(CGKeyCode)keyCode { -- 2.30.2