... | ... |
@@ -583,6 +583,11 @@ var softkeysClass = { |
583 | 583 |
type: (firstEntry ? 'selected' : 'editable') ~ '|end-of-line', |
584 | 584 |
dto: n[0], |
585 | 585 |
}); |
586 |
+ if (type == 'vor') { |
|
587 |
+ var idx = size(obj_infos) - 1; |
|
588 |
+ obj_infos[idx]._freq = n[0].frequency; |
|
589 |
+ obj_infos[idx].callback = func (id, selected) radios.getNode('nav-freq-mhz').setValue(me.device.windows.state[id].objects[selected]._freq / 100); |
|
590 |
+ } |
|
586 | 591 |
append(obj_infos, { |
587 | 592 |
text: sprintf('%s %03i° %3iNM', utf8.chstr(9658), n[1], n[2]), |
588 | 593 |
type: 'normal|end-of-line' |