I have defined a keyboard shortcut that uses space. After I have pressed the shortcut two things happen: some random navigation in my app and also the code in my eventHandler from the keyboard shortcut.
I found THIS table with browser keyboard shortcuts and obviously space sometimes is used for navigation. So is there a way to stop the navigation with space in Flex, because eating the spacebar button doesn't seem to work:
FlexGlobals.topLevelApplication.addEventListener(KeyboardEvent.KEY_DOWN,
ignoreSpaceNavigation);
private static function ignoreSpaceNavigation(event:KeyboardEvent):
event.preventDefault();
event.stopImmediatePropagation();
}
So any ideas how to stop the navigation? (I really want to use space for that keyboard shortcut!)