j-ulrich / jquery-simulate-ext

jQuery simulate extended
https://j-ulrich.github.io/jquery-simulate-ext/
Other
146 stars 48 forks source link

Updating the bililitesRange library and fixing the selection range after `rng.select` #28

Open tenbits opened 9 years ago

tenbits commented 9 years ago

Hi Jochen,

with the pull request updating here the bililiteRange library, there were some bug fixes and improvements since current version in this repository. It also fixes the problem with the simplechar method of a keysequence: rng.text method reapplies the text value of the element and thats why the .selectionStart is dropped to the end, though the bililiteRange tracks the bounds internal, the problem occures when triggering afterwards the keyup event, this makes billiteRange to recalculate bounds and then all further characters are appended to the end.

j-ulrich commented 9 years ago

Thanks for the contribution! I'll try to merge it in the near future.