diff options
| author | Jeff Carr <[email protected]> | 2025-02-01 18:37:04 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-01 18:37:04 -0600 |
| commit | 666d5ca52dd1ef0c476b3394180445bd531c1d9d (patch) | |
| tree | e7feebeb8caa492ffdb76e3395e0b18c12ec9942 /eventMouse.go | |
| parent | 0355f7c2fb4d94e01ded040be58180e0d0d1e60b (diff) | |
almost there red 5
Diffstat (limited to 'eventMouse.go')
| -rw-r--r-- | eventMouse.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/eventMouse.go b/eventMouse.go index 881ad6a..9ce90ed 100644 --- a/eventMouse.go +++ b/eventMouse.go @@ -70,6 +70,18 @@ func mouseDown(g *gocui.Gui, v *gocui.View) error { tk.doWidgetClick(mx, my) return nil } + if tk.node.WidgetType == widget.Button { + log.Info("SENDING CLICK TO Button") + tk.doWidgetClick(mx, my) + return nil + } + /* + if tk.node.WidgetType == widget.Label { + log.Info("SENDING CLICK TO Label") + tk.doWidgetClick(mx, my) + return nil + } + */ found = true } if !found { |
