X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=KeyInputTextView.m;h=7bda696fa07dea90139d3a0be7990729796b051c;hp=288d903fa156bde99ff12c9c1f1c830e4c746cee;hb=dd1f684886c2809133356bb9b335a35293e8849e;hpb=561317beecbe4dd445b0c3cb067326828ea5566a diff --git a/KeyInputTextView.m b/KeyInputTextView.m index 288d903..7bda696 100644 --- a/KeyInputTextView.m +++ b/KeyInputTextView.m @@ -7,6 +7,8 @@ #import "KeyInputTextView.h" +#import "TargetController.h" + @implementation KeyInputTextView { int vk; BOOL enabled; @@ -31,7 +33,7 @@ return self.vk >= 0; } -- (NSString *)stringForKeyCode:(int)keycode { ++ (NSString *)stringForKeyCode:(int)keycode { switch(keycode) { case -1: return @""; case 0x7a: return @"F1"; @@ -174,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];