From bb6583e014cf508867ee9ae2f942b612d676b88d Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Sat, 28 May 2022 21:33:14 -0700 Subject: [PATCH] fix(textinput): support KeySpace in both present and future Bubble Tea versions Closes #144 --- textinput/textinput.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/textinput/textinput.go b/textinput/textinput.go index 09cd3152..dd8ecbeb 100644 --- a/textinput/textinput.go +++ b/textinput/textinput.go @@ -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()