mirror of
				https://github.com/Maks1mS/bubbles.git
				synced 2025-10-31 05:42:01 +03:00 
			
		
		
		
	fix(textinput): support KeySpace in both present and future Bubble Tea versions
Closes #144
This commit is contained in:
		| @@ -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() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user