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 me.showHelp = false
if me.dropdownV == nil { if me.dropdownV == nil {
log.Info("FIXME: MADE me.dropdownV AGAIN") log.Info("FIXME: MADE me.dropdownV AGAIN")
me.dropdownV = makeDropdownView("addWidget() ddview") me.dropdownV = makeDropdownView("addWidget() ddview help")
} }
// me.dropdownV.Show() // me.dropdownV.Show()
} else { } else {

View File

@ -70,6 +70,18 @@ func mouseDown(g *gocui.Gui, v *gocui.View) error {
tk.doWidgetClick(mx, my) tk.doWidgetClick(mx, my)
return nil 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 found = true
} }
if !found { if !found {

View File

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