Several Fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user