mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-19 13:51:02 +00:00
Support paste action in terminal
This commit is contained in:
parent
e73549c61a
commit
b4e7e981f3
1 changed files with 4 additions and 0 deletions
|
|
@ -90,6 +90,10 @@ func (t *TermPane) HandleEvent(event tcell.Event) {
|
|||
} else if t.Status != shell.TTDone {
|
||||
t.WriteString(event.EscSeq())
|
||||
}
|
||||
} else if _, ok := event.(*tcell.EventPaste); ok {
|
||||
if t.Status != shell.TTDone {
|
||||
t.WriteString(event.EscSeq())
|
||||
}
|
||||
} else if e, ok := event.(*tcell.EventMouse); e != nil && (!ok || t.State.Mode(terminal.ModeMouseMask)) {
|
||||
// t.WriteString(event.EscSeq())
|
||||
} else if e != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue