almost there red 5

This commit is contained in:
Jeff Carr 2025-02-01 18:37:04 -06:00
parent 0355f7c2fb
commit 666d5ca52d
3 changed files with 14 additions and 2 deletions

View File

@ -192,7 +192,7 @@ func theHelp(g *gocui.Gui, v *gocui.View) error {
me.showHelp = false
if me.dropdownV == nil {
log.Info("FIXME: MADE me.dropdownV AGAIN")
me.dropdownV = makeDropdownView("addWidget() ddview")
me.dropdownV = makeDropdownView("addWidget() ddview help")
}
// me.dropdownV.Show()
} else {

View File

@ -70,6 +70,18 @@ func mouseDown(g *gocui.Gui, v *gocui.View) error {
tk.doWidgetClick(mx, my)
return nil
}
if tk.node.WidgetType == widget.Button {
log.Info("SENDING CLICK TO Button")
tk.doWidgetClick(mx, my)
return nil
}
/*
if tk.node.WidgetType == widget.Label {
log.Info("SENDING CLICK TO Label")
tk.doWidgetClick(mx, my)
return nil
}
*/
found = true
}
if !found {

View File

@ -53,7 +53,7 @@ func addWidget(n *tree.Node) {
// TODO: record the first window here?
// do initial setup of helper widgets here:
if me.dropdownV == nil {
me.dropdownV = makeDropdownView("addWidget() ddview")
// me.dropdownV = makeDropdownView("addWidget() ddview2")
}
return
case widget.Tab: