diff options
| author | Jeff Carr <[email protected]> | 2025-02-07 00:35:08 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-07 00:35:08 -0600 |
| commit | 5668e6f081453bdffb7d23f9259f01182d131ace (patch) | |
| tree | 27647a21318f35400b92a049bb1a1479e8e4681d /eventMouse.go | |
| parent | e96cb4375c9f4ffc45389a9df8c59116710532a4 (diff) | |
textbox kinda works
Diffstat (limited to 'eventMouse.go')
| -rw-r--r-- | eventMouse.go | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/eventMouse.go b/eventMouse.go index b7c209f..adfbfc1 100644 --- a/eventMouse.go +++ b/eventMouse.go @@ -50,7 +50,20 @@ func mouseDown(g *gocui.Gui, v *gocui.View) error { } } log.Info("never found dropdown at", w, h) - // me.dropdown.active = false + return nil + } + + // if the textbox is active, never do anything else + if me.textbox.active { + log.Info("mouseDown() stopping here. textbox widget is open") + for _, tk := range findByXY(w, h) { + if (tk.node.WidgetType == widget.Flag) && (tk == me.textbox.tk) { + me.textbox.active = false + tk.textboxClosed() + return nil + } + } + log.Info("never found textbox at", w, h) return nil } |
