diff --git a/internal/screens/connections.go b/internal/screens/connections.go index edee6a4..f6585d3 100644 --- a/internal/screens/connections.go +++ b/internal/screens/connections.go @@ -92,6 +92,20 @@ func (c Connections) Update(msg tea.Msg) (Screen, tea.Cmd) { case tea.KeyPressMsg: return c.handleKey(msg) + + case tea.PasteMsg: + text := strings.Map(func(r rune) rune { + if unicode.IsPrint(r) { + return r + } + return -1 + }, msg.Content) + if c.pairing { + c.pairInput += text + } else if c.renaming { + c.renameInput += text + } + return c, nil } return c, nil }