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