Hi,
I have setup a keybinding menu and currently the arrow keys (up, down, left, right) are still being used to tab across the menu. I set disableFocusKeys = true; on the FocusManager but it doesn't stop the arrow keys moving around the menu.
When I set disableFocusKeys to false it tabs but only every second menu item.
I have no problem capturing the key events for arrows but disabling the focus keys in this part of the menu is vital to be able to re-bind the arrow keys for left handed gamers.
Any ideas would be appreciated.
[EDIT]
I created a solution for the disableFocusKeys not working.
As I was creating a keybind menu and needed to trap the UP DOWN LEFT RIGHT and HOME INSERT etc keys , I needed to make sure they didn't follow the tab order and switch focus.
I created an internal movieclip that captured the KeyDown. I set the following code to force the clip to become Modal and only focus within the clip itself.
When the movieclip closed and the bind was set or cancelled, I simply set the Modal clip to undefined
Hope it helps.
I have setup a keybinding menu and currently the arrow keys (up, down, left, right) are still being used to tab across the menu. I set disableFocusKeys = true; on the FocusManager but it doesn't stop the arrow keys moving around the menu.
When I set disableFocusKeys to false it tabs but only every second menu item.
I have no problem capturing the key events for arrows but disabling the focus keys in this part of the menu is vital to be able to re-bind the arrow keys for left handed gamers.
Any ideas would be appreciated.
[EDIT]
I created a solution for the disableFocusKeys not working.
As I was creating a keybind menu and needed to trap the UP DOWN LEFT RIGHT and HOME INSERT etc keys , I needed to make sure they didn't follow the tab order and switch focus.
I created an internal movieclip that captured the KeyDown. I set the following code to force the clip to become Modal and only focus within the clip itself.
//AS3.0
FocusManager.setModalClip(myKeyBindMC);
FocusManager.setModalClip(myKeyBindMC);
AS3.0
FocusManager.setModalClip(undefined);
FocusManager.setModalClip(undefined);
Comment