summaryrefslogtreecommitdiff
path: root/find.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-31 22:56:05 -0600
committerJeff Carr <[email protected]>2025-01-31 22:56:05 -0600
commita8a918655a4831c3682730fdf7fe54de98837681 (patch)
tree2978c0bfe27cd5fa8056c91f82cfb7277110e74a /find.go
parent39e851c76c3154390e7835e995b8aad7638d5e73 (diff)
add keypress '2' as a debugging tool
Diffstat (limited to 'find.go')
-rw-r--r--find.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/find.go b/find.go
index a2978a6..f94da20 100644
--- a/find.go
+++ b/find.go
@@ -53,6 +53,7 @@ func findByXYreal(widget *guiWidget, w int, h int) []*guiWidget {
return widgets
}
+// returns the "highest priority widget under the mouse
func findUnderMouse() *guiWidget {
w, h := me.baseGui.MousePosition()
@@ -88,6 +89,7 @@ func findUnderMouse() *guiWidget {
return found
}
+// panics. todo: fix ctrl-mouse click?
// find the widget under the mouse click
func ctrlDown(g *gocui.Gui, v *gocui.View) error {
var found *guiWidget