Append from clipboard instead of replace (#22)
This commit is contained in:
parent
946e164564
commit
a06a25f63c
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue