Add a Linger NumberField to the menu

Native qs.Ui.NumberField (SpinBox) for lingerMs: mouse wheel, +/- buttons
and typing, 0-10000ms in 500ms steps, writing config.json like Mode and
Position so the display updates live. 0 selects the always-show behavior
from the previous commit.
This commit is contained in:
felixzsh
2026-08-11 16:23:34 -05:00
parent a5c31aaef7
commit e7232840cb
3 changed files with 17 additions and 1 deletions
+13
View File
@@ -219,6 +219,19 @@ Panel {
]
onChanged: function(v) { root.writeConfig({ position: v }) }
}
// Linger --------------------------------------------------------
NumberField {
id: lingerField
width: parent.width
label: "Linger"
value: root.lingerMs
from: 0
to: 10000
stepSize: 500
// 0 = always show (keep the last combo until the next key).
onModified: function(v) { root.writeConfig({ lingerMs: v }) }
}
}
}
}