Showing 1 changed files with 11 additions and 4 deletions
+11 -4
Nasal/knobs.nas
... ...
@@ -188,9 +188,7 @@ var knobsClass = {
188 188
         if (contains(me.device.windows.state, 'page selection')) {
189 189
             if (me.device.display['page selected'] + d < size(me.device.data['page selection'])
190 190
             and me.device.display['page selected'] + d >= 0) {
191
-                foreach (var k; keys(me.device.windows.window))
192
-                    if (find('page selection', k) == 0)
193
-                        me.device.windows.del(k);
191
+                me.device.windows.del('page selection');
194 192
                 me.device.display['page selected'] += d;
195 193
             }
196 194
             else
... ...
@@ -201,7 +199,16 @@ var knobsClass = {
201 199
                 me.device.data['page selection'][me.device.display['page selected']].objects,
202 200
             );
203 201
         me.FmsInner = me.NavigateMenu;
204
-        me.device.buttons.ENT = me.device.buttons.ValidateTMRREF;
202
+        me.device.buttons.ENT = func {
203
+            me.device.buttons.ValidateTMRREF();
204
+            me.device.buttons.CLR();
205
+        };
206
+        me.device.buttons.CLR = func {
207
+            me.device.display['page selected'] = 0;
208
+            me.device.windows.del('page selection');
209
+            me.device.buttons.CLR = func;
210
+            me.device.buttons.ENT = func;
211
+        };
205 212
     },
206 213
 
207 214
     FmsInner : void,