summaryrefslogtreecommitdiff
path: root/eventMouseClick.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-01 13:58:53 -0600
committerJeff Carr <[email protected]>2025-02-01 13:58:53 -0600
commit417b3e5225cfdf00d116082832c44ea1aab93664 (patch)
tree4d0e85aea4697c690b4022d6045f99ace73c6002 /eventMouseClick.go
parente4f0524bdf5331d91c95c9cb89eb4f40138a0ab1 (diff)
use dumpWidget() where possible
Diffstat (limited to 'eventMouseClick.go')
-rw-r--r--eventMouseClick.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/eventMouseClick.go b/eventMouseClick.go
index f96c144..d939f7a 100644
--- a/eventMouseClick.go
+++ b/eventMouseClick.go
@@ -4,8 +4,6 @@
package main
import (
- "fmt"
-
"github.com/awesome-gocui/gocui"
"go.wit.com/log"
"go.wit.com/widget"
@@ -85,7 +83,7 @@ func (tk *guiWidget) doWidgetClick(w int, h int) {
tk.showDropdown()
me.dropdownW = tk
default:
- log.Log(GOCUI, fmt.Sprintf("findByXY() blank click() %s wId=%d cuiName=%s at (%d,%d)", tk.WidgetType, tk.node.WidgetId, tk.cuiName, w, h))
+ tk.dumpWidget("blank click()")
}
}
@@ -98,7 +96,7 @@ func click(g *gocui.Gui, v *gocui.View) error {
for _, tk := range findByXY(w, h) {
// will show you everything found on a mouse click. great for debugging!
- // log.Log(GOCUI, fmt.Sprintf("findByXY() click() %s wId=%d cuiName=%s at (%d,%d)", tk.WidgetType, tk.node.WidgetId, tk.cuiName, w, h))
+ // tk.dumpWidget("click()")
if tk.WidgetType == widget.Stdout {
// don't send clicks to the stdout debugging window
continue