From 4fc44c11e8db78bc0770aeef7c1c171c87103f90 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Fri, 26 Jul 2024 21:00:53 -0400 Subject: [PATCH] Label and Heading are now selectable --- heading.go | 2 ++ label.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/heading.go b/heading.go index 092c58c..04c4b93 100644 --- a/heading.go +++ b/heading.go @@ -18,6 +18,8 @@ func NewHeading (level int, text string) *Heading { this.SetRole(tomo.R("objects", "Heading")) this.SetTag(fmt.Sprint(level), true) this.SetText(text) + this.SetSelectable(true) + this.SetFocusable(true) return this } diff --git a/label.go b/label.go index 0d0cde8..be2a850 100644 --- a/label.go +++ b/label.go @@ -13,5 +13,7 @@ func NewLabel (text string) *Label { this.SetRole(tomo.R("objects", "Label")) this.SetText(text) this.SetAttr(tomo.AAlign(tomo.AlignStart, tomo.AlignMiddle)) + this.SetSelectable(true) + this.SetFocusable(true) return this }