diff options
Diffstat (limited to 'eventBindings.go')
| -rw-r--r-- | eventBindings.go | 11 |
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 |
