Disabled inputs can no longer be selected
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user