Ulf Liller created RF-12368:
-------------------------------

             Summary: rich:hotKey not working in 4.2.2
                 Key: RF-12368
                 URL: https://issues.jboss.org/browse/RF-12368
             Project: RichFaces
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 4.2.2.Final
         Environment: JSF 2.1, RichFaces 4.2.2
            Reporter: Ulf Liller
         Attachments: FacesTest.zip

I am trying to catch backspace key presses to prevent the browser from 
processing them and doing history.back() which screws up our site's navigation.

The following works fine with JSF 1.2 and RichFaces 3.3.3:
{code:xml}
<rich:hotKey key="backspace" handler="return false;" disableInInput="true"/>
{code}
However we are trying to upgrade to RichFaces 4 and with that version it ceases 
to work.

I will attach a sample (my)Eclipse project. I have tested it with JSF 1.2 
(mojarra 1.2.15) and RichFaces 3.3.3 (which works) and JSF 2.1 (mojarra 2.1.11) 
and RichFaces 4.2.2 (which doesn't).

As a workaround I found out that calling jQuery directly and disabling the 
hotkey there is fine in both versions.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to