Преглед на файлове

Append from clipboard instead of replace (#22)

rigormorrtiss преди 4 години
родител
ревизия
a06a25f63c
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  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)
 			}