Skip to content

Commit a1e1b46

Browse files
committed
fix(textinput): support KeySpace in both present and future Bubble Tea versions
Closes #144
1 parent cd2593c commit a1e1b46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

textinput/textinput.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
629629
resetBlink = m.deleteBeforeCursor()
630630
case tea.KeyCtrlV: // ^V paste
631631
return m, Paste
632-
case tea.KeyRunes: // input regular characters
632+
case tea.KeyRunes, tea.KeySpace: // input regular characters
633633
if msg.Alt && len(msg.Runes) == 1 {
634634
if msg.Runes[0] == 'd' { // alt+d, delete word right of cursor
635635
resetBlink = m.deleteWordRight()

0 commit comments

Comments
 (0)