Append from clipboard instead of replace (#22)

This commit is contained in:
rigormorrtiss 2021-08-09 00:27:35 +04:00 • committed by GitHub
parent 946e164564
commit a06a25f63c

View file

@ -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)
}