Disabled inputs can no longer be selected

This commit is contained in:
2023-01-18 01:21:49 -05:00
parent 3ef13955be
commit 46268c8d02
2 changed files with 2 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ func (element *TextBox) Resize (width, height int) {
}
func (element *TextBox) HandleMouseDown (x, y int, button tomo.Button) {
if !element.enabled { return }
element.Select()
}