Support Article
hotkeys not registered when JSPX page is opened
SA-646
Summary
HotFix-868 was implemented on CFS6.5 for a customer (in an earlier release).
The customer has now requested this is implemented on FS 6.8.
Error Messages
Not Applicable
Steps to Reproduce
Not Applicable
Root Cause
Accessing the menu item using the hotkeys like Alt+A, Alt+Q etc is not registered when the JSPX page is opened. This issue occurs because; in the JSPX there is no implementation to capture the keyboard event handler to the specific window.
Resolution
The original hotfix on FS 6.5 was HotFix-868. The hotfix delivered for FS 6.8 was HotFix883. It addresses the above issue as follows:
- Added a new keyboardAccess.js file. This js file calls the setKbdHook() funtion which is implemented in the keyboardAccess.htc. The setKbdHook() will capture the keyboard event handler to a specific window. The js file also contains function that will call the unregisterAllHotKeys() function to unregister all the hotkeys for the specified window.
- Include the keyboardAccess.js within the JSPX files mentioned below in the content section. The js file is called using the script tag as shown below:
src="/Advisor/iAdvisorWeb/bundles/cafecommon/scripts/keyboardAccess.js">
</script>
- Including the keyboardAccess.js in the processFooter.jspx will eliminate the need to add the script tag in those the JSPX files that calls the processFooter.jspx. If the JSPX file does not call the processFooter.jspx, include the keyboardAccess.js in those JSPX pages.
Published February 9, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.