From a06a25f63c6856a7b2f5fd55df4ff042edf2bb2b Mon Sep 17 00:00:00 2001 From: rigormorrtiss Date: Mon, 9 Aug 2021 00:27:35 +0400 Subject: [PATCH] Append from clipboard instead of replace (#22) --- ui/inputfields.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/inputfields.go b/ui/inputfields.go index 2f8db67..74bcf56 100644 --- a/ui/inputfields.go +++ b/ui/inputfields.go @@ -21,6 +21,7 @@ func NewMessageInputField(onMessageInputFieldDone func(key tcell.Key), theme *ut SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey { if event.Key() == tcell.KeyCtrlV { text, _ := clipboard.ReadAll() + text = messageInputField.GetText() + text messageInputField.SetText(text) }