(ev tcell.Event)
| 1555 | } |
| 1556 | |
| 1557 | func readCmdEvent(ev tcell.Event) expr { |
| 1558 | if tev, ok := ev.(*tcell.EventKey); ok { |
| 1559 | if tev.Key() == tcell.KeyRune && tev.Modifiers()&tcell.ModAlt == 0 { |
| 1560 | return &callExpr{"cmd-insert", []string{tev.Str()}, 1} |
| 1561 | } |
| 1562 | |
| 1563 | if expr, ok := gOpts.cmdkeys[readKey(tev)]; ok { |
| 1564 | return expr |
| 1565 | } |
| 1566 | } |
| 1567 | return nil |
| 1568 | } |
| 1569 | |
| 1570 | func (ui *ui) readEvent(ev tcell.Event, nav *nav) expr { |
| 1571 | if ev == nil { |