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