Explorar o código

Append from clipboard instead of replace (#22)

rigormorrtiss %!s(int64=4) %!d(string=hai) anos
pai
achega
a06a25f63c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      ui/inputfields.go

+ 1 - 0
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)
 			}