Changed 'Tabbable/Focusable' logic to use Active
This commit is contained in:
@@ -199,11 +199,12 @@ func (w *MenuItem) Draw(screen tcell.Screen) {
|
||||
|
||||
func (w *MenuItem) SetStyle(s tcell.Style) { w.style = s }
|
||||
func (w *MenuItem) Active() bool { return w.active }
|
||||
func (w *MenuItem) SetActive(a bool) {
|
||||
func (w *MenuItem) SetActive(a bool) bool {
|
||||
w.active = a
|
||||
if !w.manualExpand {
|
||||
w.expanded = a
|
||||
}
|
||||
return w.active
|
||||
}
|
||||
func (w *MenuItem) Visible() bool { return w.visible }
|
||||
func (w *MenuItem) SetVisible(a bool) { w.visible = a }
|
||||
|
||||
Reference in New Issue
Block a user