mirror of
https://github.com/Maks1mS/bubbles.git
synced 2025-01-11 22:41:03 +03:00
fix(textinput): support KeySpace in both present and future Bubble Tea versions
Closes #144
This commit is contained in:
parent
cd2593cfb7
commit
a1e1b461b6
@ -629,7 +629,7 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
|
|||||||
resetBlink = m.deleteBeforeCursor()
|
resetBlink = m.deleteBeforeCursor()
|
||||||
case tea.KeyCtrlV: // ^V paste
|
case tea.KeyCtrlV: // ^V paste
|
||||||
return m, Paste
|
return m, Paste
|
||||||
case tea.KeyRunes: // input regular characters
|
case tea.KeyRunes, tea.KeySpace: // input regular characters
|
||||||
if msg.Alt && len(msg.Runes) == 1 {
|
if msg.Alt && len(msg.Runes) == 1 {
|
||||||
if msg.Runes[0] == 'd' { // alt+d, delete word right of cursor
|
if msg.Runes[0] == 'd' { // alt+d, delete word right of cursor
|
||||||
resetBlink = m.deleteWordRight()
|
resetBlink = m.deleteWordRight()
|
||||||
|
Loading…
Reference in New Issue
Block a user