Add support for primary clipboard

This commit is contained in:
Zachary Yedidia
2016-09-02 09:40:08 -04:00
parent 226cf399ba
commit d9b8a04841
5 changed files with 40 additions and 16 deletions

View File

@@ -287,7 +287,7 @@ func (m *Messenger) HandleEvent(event tcell.Event, history []string) {
m.cursorx--
}
case tcell.KeyCtrlV:
clip, _ := clipboard.ReadAll()
clip, _ := clipboard.ReadAll("clipboard")
m.response = Insert(m.response, m.cursorx, clip)
m.cursorx += Count(clip)
case tcell.KeyRune: