Replace meta with alt automatically, update tcell

This commit is contained in:
Zachary Yedidia
2020-09-05 21:59:19 -04:00
parent 11104fd093
commit 96601a915d
6 changed files with 20 additions and 9 deletions

View File

@@ -120,7 +120,7 @@ func (t *TermPane) HandleEvent(event tcell.Event) {
if e, ok := event.(*tcell.EventKey); ok {
ke := KeyEvent{
code: e.Key(),
mod: e.Modifiers(),
mod: metaToAlt(e.Modifiers()),
r: e.Rune(),
}
action, more := TermBindings.NextEvent(ke, nil)