I have a function with onkeyup to modify the letters of text typed in uppercase.
When I tried to edit a letter in the middle of the input text the cursor will automatically position at the end of text.
I would like the cursor to keep the same position.
https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_onkeyup