Showing 2 changed files with 7 additions and 6 deletions
+7 -1
Nasal/MFD.pages.nas
... ...
@@ -175,13 +175,19 @@ displayClass.MFD = {
175 175
                 me.device.knobs.FmsOuter = me.device.knobs.MFD_select_page_group;
176 176
             }
177 177
             me.device.buttons.ENT = func (a = 0) {
178
-                a or return;
178
+                if (a) return;
179 179
                 var (id, selected) = split('-', me.device.windows.selected);
180 180
                 var file = me.device.windows.state[id].objects[selected]._file;
181 181
                 me.device.buttons.CLR();
182 182
                 data.flightplan = flightplan(file);
183 183
                 data.flightplan.activate();
184 184
                 fgcommand("activate-flightplan", props.Node.new({"activate": 1}));
185
+                foreach (var d; keys(zkv1000.flightdeck)) {
186
+                    if (zkv1000.flightdeck[d].role == 'MFD')
187
+                        zkv1000.flightdeck[d].softkeys.colored.MAPROUTE = 1;
188
+                    if (zkv1000.flightdeck[d].role == 'PFD')
189
+                        zkv1000.flightdeck[d].softkeys.colored.INSETROUTE = 1;
190
+                }
185 191
             }
186 192
         },
187 193
     },
-5
Nasal/maps/route.nas
... ...
@@ -211,11 +211,6 @@ var MapRoute = {
211 211
         m.flightPlan = [];
212 212
         m.currentWpIndex = getprop('/autopilot/route-manager/current-wp');
213 213
         
214
-        if (m.device.role == 'PFD')
215
-            m.device.softkeys.colored.INSETROUTE = 1;
216
-        if (m.device.role == 'MFD')
217
-            m.device.softkeys.colored.MAPROUTE = 1;
218
-
219 214
         return m;
220 215
     },
221 216
     off: func {