HotKey: "enable/disable" JS functions do not work for hotKey registered using
"add" function.
---------------------------------------------------------------------------------------------
Key: RF-3809
URL:
http://jira.jboss.com/jira/browse/RF-3809
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Reporter: Alexander Dubovsky
Assigned To: Nick Belaevski
HotKey: "enable/disable" JS functions do not work for hotKey registered using
"add" function:
<sb:hotKey id="id" timing="onregistercall" />
<a4j:commandLink value="disable"
onclick="$('_form:id').component.disable(); return
false;"></a4j:commandLink>
<br />
<a4j:commandLink value="enable"
onclick="$('_form:id').component.enable(); return
false;"></a4j:commandLink>
<br />
<a4j:commandLink id="linkID1" value="add" onclick="return
false;"></a4j:commandLink>
<cc:componentControl attachTo="linkID1" for="id"
operation="add" event="onclick">
<f:param name="key" value="alt+c"/>
<f:param name="handler" value="alert('Hello!')" />
</cc:componentControl>
# Open page
# Click "add" link
# Try ALT+C => alert appears
# Click "disable" link
# Try ALT+C
Result: alert appears
Expected result: alert should not appear
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira