i'm migrating richfaces primefaces. in richfaces hotkey use:
<rich:hotkey key="return" selector="#firstnametxtfield" handler="#{rich:element('savebutton')}.click();event.stoppropagation(); event.preventdefault();return false;"/>
what attribute can replace selector
in primefaces?
in primefaces hotkey not able use selector. maybe defaultaction (http://www.primefaces.org/showcase/ui/misc/defaultcommand.xhtml) helps in case.