Go Back   CodingForums.com > :: Client side development > Flash & ActionScript > Adobe Flex

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-19-2011, 05:10 PM   PM User | #1
bon_t
New Coder

 
Join Date: Jul 2010
Posts: 32
Thanks: 1
Thanked 0 Times in 0 Posts
bon_t is an unknown quantity at this point
Hotkeys/Shortcut Keys - What are key combinations NOT captured by browsers?

Hi All,

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:
http://help.adobe.com/en_US/flex/usi...4a29-7fdb.html
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?
Thank you!
bon_t is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:23 PM.


Advertisement
Log in to turn off these ads.