diff options
| author | Jeff Carr <[email protected]> | 2025-02-07 03:51:23 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-07 03:51:23 -0600 |
| commit | b6b5df6a18f03822e26a426bf624d1ca7ccbf354 (patch) | |
| tree | b2b7ddbae9780712fb9e79e17e39afdb0e10cc38 /eventMouse.go | |
| parent | 13a194dca5d9c6153772d2ef4e1f5ce93f191c6d (diff) | |
forge is finally an app again. this time in the consolev0.22.17
Diffstat (limited to 'eventMouse.go')
| -rw-r--r-- | eventMouse.go | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/eventMouse.go b/eventMouse.go index 4c779cb..f2e1a92 100644 --- a/eventMouse.go +++ b/eventMouse.go @@ -43,7 +43,7 @@ func mouseDown(g *gocui.Gui, v *gocui.View) error { log.Info("mouseDown() stopping here. dropdwon menu is in effect") for _, tk := range findByXY(w, h) { if (tk.node.WidgetType == widget.Flag) && (tk == me.dropdown.tk) { - log.Info("SENDING CLICK TO Flag (dropdown)") + // log.Info("SENDING CLICK TO Flag (dropdown)") tk.doWidgetClick(w, h) me.dropdown.active = false return nil @@ -80,45 +80,39 @@ func mouseDown(g *gocui.Gui, v *gocui.View) error { for _, tk := range tk.findByXYreal(w, h) { // tk.dumpWidget("mouseDown()") if tk.node.WidgetType == widget.Button { - log.Info("SENDING CLICK TO Button") + // log.Info("SENDING CLICK TO Button") tk.doWidgetClick(w, h) return nil } if tk.node.WidgetType == widget.Checkbox { - log.Info("SENDING CLICK TO Checkbox") + // log.Info("SENDING CLICK TO Checkbox") tk.doWidgetClick(w, h) return nil } if tk.node.WidgetType == widget.Dropdown { - log.Info("SENDING CLICK TO Dropdown") + // log.Info("SENDING CLICK TO Dropdown") tk.doWidgetClick(w, h) return nil } if tk.node.WidgetType == widget.Textbox { - log.Info("SENDING CLICK TO Textbox") + // log.Info("SENDING CLICK TO Textbox") tk.doWidgetClick(w, h) return nil } } } if tk.node.WidgetType == widget.Stdout { - tk.dumpWidget("stdout fixme drag()" + tk.labelN) + // tk.dumpWidget("stdout fixme drag()" + tk.labelN) me.currentDrag = tk tk.dragW = w - tk.gocuiSize.w0 tk.dragH = h - tk.gocuiSize.h0 - // tk.doWidgetClick(w-tk.dragW, w-tk.dragH) return nil } - tk.dumpWidget("mouse drag()" + tk.labelN) + // tk.dumpWidget("mouse drag()" + tk.labelN) me.currentDrag = tk tk.dragW = w - tk.gocuiSize.w0 tk.dragH = h - tk.gocuiSize.h0 - // tk.doWidgetClick(w-tk.dragW, w-tk.dragH) return nil - - // move the msg I guess - // return msgDown(g, v) - // return nil } /* |
