[xulrunner] Set isChar true to nsTextEvent when length is 1