Fix unreachable code in textBox
This commit is contained in:
@@ -121,16 +121,16 @@ func (this *textBox) selectWithoutResettingDesiredX (dot text.Dot) bool {
|
||||
|
||||
func (this *textBox) userSelect (dot text.Dot) bool {
|
||||
if this.selec(dot) {
|
||||
return true
|
||||
this.on.dotChange.Broadcast()
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (this *textBox) userSelectWithoutResettingDesiredX (dot text.Dot) bool {
|
||||
if this.selectWithoutResettingDesiredX(dot) {
|
||||
return true
|
||||
this.on.dotChange.Broadcast()
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user