1 Reply Latest reply on Mar 26, 2008 10:12 AM by Gaurav J

    Prevent default behavior TextInput

    marcbc
      Hi,
      I'm fighting with this preventDefault method... would like my TextInput to not to position the cursor at the begining or end when a up/down arrow key is pressed. How can avoid this behaviour?

      I tried to add an event listener for KEY_DOWN and KEY_UP, and there doing an event.preventDefault(), but this does not work... I was also expecting this to replace all the defaults behaviours and avoid writing the pressed keys into the TextInput, but they also appear.

      I'm doing it wrong? The problem could be dealing with the TextInput instead of its TextField?

      thanks in advance,

      Marc