Changed 'Tabbable/Focusable' logic to use Active

This commit is contained in:
2026-02-02 13:29:51 -06:00
parent 62ef3b5d44
commit 16a92c8f99
30 changed files with 377 additions and 322 deletions

View File

@@ -131,12 +131,13 @@ func (w *DatePicker) Draw(screen tcell.Screen) {
func (w *DatePicker) SetStyle(s tcell.Style) { w.style = s }
func (w *DatePicker) Active() bool { return w.active }
func (w *DatePicker) SetActive(a bool) {
func (w *DatePicker) SetActive(a bool) bool {
if !w.active && a {
// Wasn't active, but turning on
w.dateFld.SetActive(true)
}
w.active = a
return w.active
}
func (w *DatePicker) Visible() bool { return w.visible }
func (w *DatePicker) SetVisible(a bool) { w.visible = a }