--- a/svghmi/widget_keypad.ysl2 Wed Jun 01 09:22:07 2022 +0200
+++ b/svghmi/widget_keypad.ysl2 Wed Jun 01 11:12:26 2022 +0200
@@ -30,6 +30,8 @@
var syms = symbols.split(" ");
this.editstr += syms[this.shift?syms.length-1:0];
@@ -98,16 +100,19 @@
show_modal.call(this,size);
this.editstr = String(initial);
this.result_callback_obj = callback_obj;
- this.Info_elt.textContent = info;
+ this.Info_elt.textContent = info; if(this.editstr != this._editstr){
this._editstr = this.editstr;
this.Value_elt.textContent = this.editstr;
@@ -123,8 +128,8 @@
- labels("Esc Enter BackSpace Keys Info Value");
- optional_labels("Sign Space NumDot");
+ labels("Esc Enter BackSpace Keys Value"); + optional_labels("Sign Space NumDot Info"); activable_labels("CapsLock Shift");
foreach "$hmi_element/*[@inkscape:label = 'Keys']/*" {
@@ -138,4 +143,5 @@
const "g", "$geometry[@Id = $hmi_element/@id]";
| coordinates: [«$g/@x», «$g/@y»],