Showing 1 changed files with 6 additions and 2 deletions
+6 -2
Nasal/knobs.nas
... ...
@@ -80,8 +80,6 @@ var knobsClass = {
80 80
                     object.text = val;
81 81
                     break;
82 82
                 }
83
-            if (find(object.type, 'immediate') > -1)
84
-                me.device.buttons.ENT();
85 83
         }
86 84
         elsif (contains(object, 'format')) {
87 85
             var v = substr(val, find('%', object.format));
... ...
@@ -114,6 +112,12 @@ var knobsClass = {
114 112
                 .setText(val);
115 113
             object.text = val;
116 114
         }
115
+        if (find('immediate', object.type) > -1) {
116
+            if (contains(object, 'callback')) {
117
+                call(object.callback, [id, selected], me);}
118
+            else
119
+                me.device.buttons.ENT();
120
+        }
117 121
     },
118 122
 
119 123
     NavigateMenu : func (d) {