diff options
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 { |
