summaryrefslogtreecommitdiff
path: root/eventMouseClick.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-25 09:31:40 -0500
committerJeff Carr <[email protected]>2025-03-25 13:17:00 -0500
commitaaebb4c5d993aafe8b290055296c9aaa1fb1ea93 (patch)
tree2bbc22b83c112eaa05de852e1505ebe6bfbca24f /eventMouseClick.go
parent36514cbb6818dd06e13b2dff20fa4f0ac67ce545 (diff)
table headers identified. ready for sorting
Diffstat (limited to 'eventMouseClick.go')
-rw-r--r--eventMouseClick.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/eventMouseClick.go b/eventMouseClick.go
index 0dfa7e4..0d46216 100644
--- a/eventMouseClick.go
+++ b/eventMouseClick.go
@@ -109,6 +109,14 @@ func doMouseClick(w int, h int) {
case widget.Textbox:
tk.prepTextbox()
return
+ case widget.Label:
+ if tk.node.InTable() {
+ if tk.node.State.AtH == 0 {
+ log.Log(NOW, "todo: sort by column here")
+ tk.dumpWidget("sort")
+ }
+ }
+ return
default:
// TODO: enable the GUI debugger in gocui
// tk.dumpWidget("undef click()") // enable this to debug widget clicks