From 02516bdcce6d65624282ad001afb0b9ac903637e Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sat, 24 Aug 2024 14:42:08 -0400 Subject: [PATCH] Same as last commit but for TearLine --- menu.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/menu.go b/menu.go index fe58d04..19db5ce 100644 --- a/menu.go +++ b/menu.go @@ -91,6 +91,12 @@ func (this *Menu) newTearLine () tomo.Object { tearLine := tomo.NewBox() tearLine.SetRole(tomo.R("objects", "TearLine")) tearLine.SetFocusable(true) + tearLine.OnMouseEnter(func () { + tearLine.SetFocused(true) + }) + tearLine.OnMouseLeave(func () { + tearLine.SetFocused(false) + }) tearLine.OnKeyDown(func (key input.Key, numberPad bool) bool { if !isClickingKey(key) { return false } return true