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