svghmi/widget_keypad.ysl2
branchsvghmi
changeset 3102 abb487b56911
parent 3047 c113904f0e62
child 3118 e704b0487515
--- a/svghmi/widget_keypad.ysl2	Tue Dec 29 15:38:31 2020 +0100
+++ b/svghmi/widget_keypad.ysl2	Tue Dec 29 15:39:48 2020 +0100
@@ -175,11 +175,11 @@
                  this._editstr = this.editstr;
                  this.Value_elt.textContent = this.editstr;
              }
-             if(this.shift != this._shift){
+             if(this.Shift_sub && this.shift != this._shift){
                  this._shift = this.shift;
                  (this.shift?widget_active_activable:widget_inactive_activable)(this.Shift_sub);
              }
-             if(this.caps != this._caps){
+             if(this.CapsLock_sub && this.caps != this._caps){
                  this._caps = this.caps;
                  (this.caps?widget_active_activable:widget_inactive_activable)(this.CapsLock_sub);
              }