Skip to content

Commit

Permalink
fix(textinput): support KeySpace in future Bubble Tea versions
Browse files Browse the repository at this point in the history
Closes #144
  • Loading branch information
meowgorithm committed May 29, 2022
1 parent cd2593c commit 8dbd389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion textinput/textinput.go
Expand Up @@ -629,7 +629,7 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
resetBlink = m.deleteBeforeCursor()
case tea.KeyCtrlV: // ^V 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.Runes[0] == 'd' { // alt+d, delete word right of cursor
resetBlink = m.deleteWordRight()
Expand Down

0 comments on commit 8dbd389

Please sign in to comment.