--- a/svghmi/widget_input.ysl2 Mon Jan 25 14:02:08 2021 +0100
+++ b/svghmi/widget_input.ysl2 Tue Jan 26 11:14:22 2021 +0100
@@ -28,9 +28,6 @@
template "widget[@type='Input']", mode="widget_defs" {
param "hmi_element";
- const "key_pos_elt" optional_labels("key_pos");
- value "$key_pos_elt";
-
const "value_elt" optional_labels("value");
const "have_value","string-length($value_elt)>0";
value "$value_elt";
@@ -62,16 +59,7 @@
| init: function() {
if "$have_edit" {
- | this.edit_elt.onclick = () => edit_value(
- | "«path/@value»", "«path/@type»",
- | this, this.last_val,
- choose {
- when "string-length($key_pos_elt)>0"
- | this.key_pos_elt.getBBox()
- otherwise
- | undefined
- }
- | );
+ | this.edit_elt.onclick = () => edit_value("«path/@value»", "«path/@type»", this, this.last_val);
}
foreach "$hmi_element/*[regexp:test(@inkscape:label,'^[=+\-].+')]" {