svghmi/widget_keypad.ysl2
branchsvghmi
changeset 3102 abb487b56911
parent 3047 c113904f0e62
child 3118 e704b0487515
equal deleted inserted replaced
3101:4cbf024a6640 3102:abb487b56911
   173          update() {
   173          update() {
   174              if(this.editstr != this._editstr){
   174              if(this.editstr != this._editstr){
   175                  this._editstr = this.editstr;
   175                  this._editstr = this.editstr;
   176                  this.Value_elt.textContent = this.editstr;
   176                  this.Value_elt.textContent = this.editstr;
   177              }
   177              }
   178              if(this.shift != this._shift){
   178              if(this.Shift_sub && this.shift != this._shift){
   179                  this._shift = this.shift;
   179                  this._shift = this.shift;
   180                  (this.shift?widget_active_activable:widget_inactive_activable)(this.Shift_sub);
   180                  (this.shift?widget_active_activable:widget_inactive_activable)(this.Shift_sub);
   181              }
   181              }
   182              if(this.caps != this._caps){
   182              if(this.CapsLock_sub && this.caps != this._caps){
   183                  this._caps = this.caps;
   183                  this._caps = this.caps;
   184                  (this.caps?widget_active_activable:widget_inactive_activable)(this.CapsLock_sub);
   184                  (this.caps?widget_active_activable:widget_inactive_activable)(this.CapsLock_sub);
   185              }
   185              }
   186          }
   186          }
   187     }
   187     }