summaryrefslogtreecommitdiff
path: root/eventBindings.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-31 13:00:26 -0600
committerJeff Carr <[email protected]>2025-01-31 13:47:45 -0600
commitb7cd6d07fcaa69d009b3f33f7c59afb16b719029 (patch)
tree5acb4a3b04dd7603a6085a5be51b448227512a11 /eventBindings.go
parentf76960c90764159d1cad6b5264687accc39ca4bd (diff)
hmm. can't figure out where clicks are goingv0.22.15
Diffstat (limited to 'eventBindings.go')
-rw-r--r--eventBindings.go11
1 files changed, 11 insertions, 0 deletions
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