I am using ActionScript 3.0. I know how to implement a hotkey by listening for keyboard events and using the keycode or charcode values.
At this link:
It states that:
When handling a key or key combination that the underlying operating system or browser recognizes, the operating system or browser generally processes the event first. For example, in Microsoft Internet Explorer, pressing Control+w closes the browser window. If you trap that combination in your application, Internet Explorer users never know it, because the browser closes before the ActiveX Flash Player has a chance to react to the event.
I need 19 hotkeys, and am testing currently with only Internet Explorer and Firefox. My issue is that there doesn't seem to be enough key combinations that are not used by the browsers!
Actually, this issue is magnified by the fact that I have a TextArea on the screen, in which we allow the user to modify text. And hence when the cursor is in this TextArea, the Home, End, Page Up, Page Down, and four arrow keys have predefined functionalities that cannot be overridden. Meaning I tried assigning the key combinations to other functionalities, but both end up getting executed. This behaviour extends to the same keys on the numeric keypad.
Also, we cannot use Ctrl + Z, Ctrl + X, Ctrl + C, and Ctrl + V b/c these are understood to be for Undo, Cut, Copy, and Paste respectively.
In the end, it seems I have only Ctrl + Y, Ctrl + K, Ctrl + M for the letters; Ctrl + Enter, Shift + Space, Ctrl + Space; Ctrl + <some punctuation marks>.
I recently found out that Ctrl + 1 to Ctrl + 0 are reserved for tab management in Internet Explorer 8!
Any advice on how I can resolve this?