소스 검색

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