1 Reply Latest reply on Dec 18, 2009 5:45 AM by jsfgeeks

    keyboard shortcuts

    pewal

      Hello, is there any way to detect when the user clicks tab or Enter or any other key short cuts?

      My problem is that when the user inserts data in the last inputTextfield in a row of an editable dataTable, he wants to get a new row with the mouse pointer in the first new inputTextfield.

       

      Is there any way to do it?

       

      Paolo

        • 1. Re: keyboard shortcuts
          jsfgeeks

          Hi Paolo,

           

          I don't whether it will work for you or not, but you can try it inside inputTextfield.

           

          <a4j:jsFunction name="jsFunction" action="#{my_bean.action_event}"
                                   reRender="component_list_to_reRender"/>

          <rich:hotKey key="return" handler="jsFunction()"/>

           

          I guess it will help you.

           

          good luck,

          JSF GEEKS