Several Fixes

This commit is contained in:
2025-08-27 07:42:24 -05:00
parent e4405a8d6b
commit 4361d7b5cf
6 changed files with 45 additions and 24 deletions

View File

@@ -97,7 +97,10 @@ func (w *Menu) HandleKey(ev *tcell.EventKey) bool {
if !w.active {
return false
} else if w.items[w.cursor].HandleKey(ev) {
// See if the active menuitem consumes this event
// Active menuitem consumes this event
if ev.Key() == tcell.KeyEnter {
w.SetActive(false)
}
return true
} else if ok := w.keyMap.Handle(ev); ok {
// Otherwise see if we handle it