diff options
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 } |
