3 Replies Latest reply on Mar 5, 2010 3:23 AM by JockMahon

    Key Listeners best policy?

    JockMahon Level 1

      Just say i have an application with two panels on it. Each panel has a form with textinputs. I also have in each panel a key listener so the user can press enter to move to the next text input in the form.


      What is the best policy to manage these listeners should i


      1) Have a key listener in the parent of the two panels and on key press call a function in the panel with focus to preform the action required


      2) Have a listener in each panel and use some event like focusIn and focusOut to add / remove the listeners


      3) Some other method that might exist