From c2f8cac4a9f9737eee5983ca7ce81fde8c102715 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 6 Feb 2025 23:49:18 -0600 Subject: basic start of a stubbed out 'textbox' entry box --- eventMouseClick.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'eventMouseClick.go') diff --git a/eventMouseClick.go b/eventMouseClick.go index 57c4580..ca361b7 100644 --- a/eventMouseClick.go +++ b/eventMouseClick.go @@ -96,6 +96,8 @@ func (tk *guiWidget) doWidgetClick(w int, h int) { tk.showDropdown() case widget.Dropdown: tk.showDropdown() + case widget.Textbox: + tk.showTextbox() case widget.Flag: tk.dropdownClicked(w, h) default: @@ -104,7 +106,7 @@ func (tk *guiWidget) doWidgetClick(w int, h int) { } // sends the mouse click to a widget underneath -func click(g *gocui.Gui, v *gocui.View) error { +func clickOLD(g *gocui.Gui, v *gocui.View) error { mouseW, mouseH := me.baseGui.MousePosition() w := mouseW -- cgit v1.2.3