mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 06:37:14 +09:00
Support tcell EventPaste
This commit is contained in:
@@ -268,6 +268,9 @@ func (h *BufPane) HandleEvent(event tcell.Event) {
|
|||||||
esc: e.EscSeq(),
|
esc: e.EscSeq(),
|
||||||
}
|
}
|
||||||
h.DoKeyEvent(re)
|
h.DoKeyEvent(re)
|
||||||
|
case *tcell.EventPaste:
|
||||||
|
h.paste(e.Text())
|
||||||
|
h.Relocate()
|
||||||
case *tcell.EventKey:
|
case *tcell.EventKey:
|
||||||
ke := KeyEvent{
|
ke := KeyEvent{
|
||||||
code: e.Key(),
|
code: e.Key(),
|
||||||
|
|||||||
Reference in New Issue
Block a user