X-Git-Url: https://git.yukkurigames.com/?a=blobdiff_plain;f=KeyInputTextView.m;h=7bda696fa07dea90139d3a0be7990729796b051c;hb=9480992fac2c0b71851db8e4906e77e2128d8919;hp=cde2547d8c8ac455db7e9e2f4741627e919f73c6;hpb=c6fb77859e508aaef686b7a5a6a12abe29178708;p=enjoyable.git diff --git a/KeyInputTextView.m b/KeyInputTextView.m index cde2547..7bda696 100644 --- a/KeyInputTextView.m +++ b/KeyInputTextView.m @@ -33,7 +33,7 @@ return self.vk >= 0; } -- (NSString *)stringForKeyCode:(int)keycode { ++ (NSString *)stringForKeyCode:(int)keycode { switch(keycode) { case -1: return @""; case 0x7a: return @"F1"; @@ -176,7 +176,7 @@ - (void)setVk:(int)key { vk = key; - descr = [self stringForKeyCode:key]; + descr = [KeyInputTextView stringForKeyCode:key]; [self setStringValue:descr]; if (self.hasKey) [targetController keyChanged];