Errors in FlxInputText

24 views
Skip to first unread message

Thomas Bernard

unread,
Aug 11, 2015, 12:21:31 PM8/11/15
to HaxeFlixel
Found 2 errors in FlxInputText:

In the filter() function

pattern.replace(text, "");

Must be changed to:

text = pattern.replace(text, "");

for filters to take effect



And in the getCharBoundaries() function

if (_charBoundaries != null && charIndex > 0 && charIndex < _charBoundaries.length)

must be changed to

if (_charBoundaries != null && charIndex >= 0 && charIndex < _charBoundaries.length)

for the caret to be correctly placed when text length=1 on neko and cpp targets

SruloArt

unread,
Aug 11, 2015, 12:28:24 PM8/11/15
to haxef...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages