Add documentation for Slider

This commit is contained in:
2023-09-14 17:03:19 -04:00
parent c210c07b74
commit 2251d33ac7
3 changed files with 22 additions and 6 deletions

View File

@@ -52,7 +52,7 @@ func (this *TextInput) handleKeyDown (key input.Key, numpad bool) {
word := modifiers.Control
sel := modifiers.Shift
changed := false
switch {
case key == input.KeyEnter:
this.on.enter.Broadcast()
@@ -87,7 +87,7 @@ func (this *TextInput) handleKeyDown (key input.Key, numpad bool) {
this.text, dot = text.Type(this.text, dot, rune(key))
changed = true
}
this.Select(dot)
if changed { this.SetText(string(this.text)) }
}