diff --git a/tssh/tools.go b/tssh/tools.go index c18a62f..1c3b5e1 100644 --- a/tssh/tools.go +++ b/tssh/tools.go @@ -301,7 +301,9 @@ func (m *passwordModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { m.passwordInput = m.passwordInput[:len(m.passwordInput)-1] } case tea.KeyRunes, tea.KeySpace: - m.passwordInput += string(msg.Runes) + if len(msg.Runes) > 0 && msg.Runes[0] != 0 { + m.passwordInput += string(msg.Runes) + } m.err = nil } case error: