diff options
| author | Jeff Carr <[email protected]> | 2025-02-01 14:55:25 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-01 14:55:25 -0600 |
| commit | 8d007ec10d8ea58d3bb1f85ec2ce2e99c3604231 (patch) | |
| tree | 2fa112bb00658c7c7b615ef93b6c8ace6d35feba | |
| parent | fdca4d26014b4d448af59a595f3ed87bda8c9421 (diff) | |
trying to handle Flag widget clicks
| -rw-r--r-- | eventMouseClick.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/eventMouseClick.go b/eventMouseClick.go index d939f7a..a2af12a 100644 --- a/eventMouseClick.go +++ b/eventMouseClick.go @@ -13,7 +13,7 @@ import ( // the debugging is way way better now with it being visible in the Stdout window // so now it's possible to redo all this and make it better func (tk *guiWidget) doWidgetClick(w int, h int) { - switch tk.WidgetType { + switch tk.node.WidgetType { case widget.Window: // if there is a current window, hide it if me.currentWindow != nil { @@ -82,6 +82,12 @@ func (tk *guiWidget) doWidgetClick(w int, h int) { log.Log(GOCUI, "do the dropdown here") tk.showDropdown() me.dropdownW = tk + case widget.Flag: + log.Log(GOCUI, "flag widget found!") + tk.dumpWidget("flag click") + case widget.Stdout: + log.Log(GOCUI, "stdout widget found!") + tk.dumpWidget("stdout click") default: tk.dumpWidget("blank click()") } |
