MCPcopy Create free account
hub / github.com/gokcehan/lf / readCmdEvent

Function readCmdEvent

ui.go:1557–1568  ·  view source on GitHub ↗
(ev tcell.Event)

Source from the content-addressed store, hash-verified

1555}
1556
1557func 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
1570func (ui *ui) readEvent(ev tcell.Event, nav *nav) expr {
1571 if ev == nil {

Callers 1

readEventMethod · 0.85

Calls 1

readKeyFunction · 0.85

Tested by

no test coverage detected