I would like to focus on the end of a TextField when the up arrow is pressed. I’m using:
txt.setSelection(txt.text.length,txt.text.length);
This works great for any key except the up arrow. I believe that the up arrow automatically sets selection to the beginning of a TextField when it is in focus. How can I override this default behaviour?
I wanted to change the behavior of the home key, this is how I did it :
(The following code should essentially disable the HOME key but can be modified to make it do anything)