From c34e3cd91e58b46c310c0c5900a56563d31a8fa7 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Mon, 9 Jan 2023 18:20:39 -0500 Subject: [PATCH] Disabled buttons are not selectable --- elements/basic/button.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/basic/button.go b/elements/basic/button.go index 1d1d946..0a84002 100644 --- a/elements/basic/button.go +++ b/elements/basic/button.go @@ -112,7 +112,7 @@ func (element *Button) AdvanceSelection (direction int) (ok bool) { } func (element *Button) Selectable () (selectable bool) { - return true + return element.enabled } func (element *Button) Select () {