summaryrefslogtreecommitdiff
path: root/eventMouseClick.go
diff options
context:
space:
mode:
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