mirror of
https://github.com/Maks1mS/bubbles.git
synced 2025-03-14 13:03:44 +03:00
Property convert single character input to strings
This commit is contained in:
parent
692322b84c
commit
a684bf4701
@ -116,7 +116,7 @@ func Update(msg tea.Msg, m Model) (Model, tea.Cmd) {
|
|||||||
m.pos = 0
|
m.pos = 0
|
||||||
return m, nil
|
return m, nil
|
||||||
case tea.KeyRune:
|
case tea.KeyRune:
|
||||||
m.Value = m.Value[:m.pos] + msg.String() + m.Value[m.pos:]
|
m.Value = m.Value[:m.pos] + string(msg.Rune) + m.Value[m.pos:]
|
||||||
m.pos++
|
m.pos++
|
||||||
return m, nil
|
return m, nil
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user