case 1:
if (keyInput.hasKeyCode) {
NJOutputKeyPress *k = [[NJOutputKeyPress alloc] init];
- k.vk = keyInput.keyCode;
+ k.keyCode = keyInput.keyCode;
return k;
} else {
return nil;
} else {
self.enabled = YES;
NSString *inpFullName = input.name;
- for (NJInputPathElement *cur = input.base; cur; cur = cur.base) {
+ for (NJInputPathElement *cur = input.parent; cur; cur = cur.parent) {
inpFullName = [[NSString alloc] initWithFormat:@"%@ ▸ %@", cur.name, inpFullName];
}
title.stringValue = inpFullName;
if ([output isKindOfClass:NJOutputKeyPress.class]) {
[radioButtons selectCellAtRow:1 column:0];
- keyInput.keyCode = [(NJOutputKeyPress*)output vk];
+ keyInput.keyCode = [(NJOutputKeyPress*)output keyCode];
} else if ([output isKindOfClass:NJOutputMapping.class]) {
[radioButtons selectCellAtRow:2 column:0];
NSMenuItem *item = [mappingPopup itemWithRepresentedObject:[(NJOutputMapping *)output mapping]];