hotkeys not registered when JSPX page is opened
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.
Steps to Reproduce
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.
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:
- 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.
0% found this useful