From b7cd6d07fcaa69d009b3f33f7c59afb16b719029 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 31 Jan 2025 13:00:26 -0600 Subject: hmm. can't figure out where clicks are going --- eventBindings.go | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'eventBindings.go') diff --git a/eventBindings.go b/eventBindings.go index f8bcf41..c18ffdf 100644 --- a/eventBindings.go +++ b/eventBindings.go @@ -4,7 +4,10 @@ package main import ( + "fmt" + "github.com/awesome-gocui/gocui" + log "go.wit.com/log" ) // tells 'gocui' what to call based on what key was pressed @@ -44,6 +47,14 @@ func openDebuggger(g *gocui.Gui, v *gocui.View) error { return nil } +func theFind(g *gocui.Gui, v *gocui.View) error { + w, h := g.MousePosition() + for _, tk := range findByXY(w, h) { + log.Log(GOCUI, fmt.Sprintf("findByXY() 'f' key %-8s wId=%4d at (%3d,%3d) %s", tk.WidgetType, tk.node.WidgetId, w, h, tk.node.String())) + } + return nil +} + // is run whenever anyone hits 'd' (in an open space) func theLetterD(g *gocui.Gui, v *gocui.View) error { // widgets that don't have physical existance in -- cgit v1.2.3