I am having a problem trapping the HELP key in OS X. Every other key I have tried seems to work. I have the “Disable Keyboard Shortcuts” checked in the Control Menu.
My code is pretty simple:
if ( (Key.isDown(Key.HOME)) )
{
infobar_sequence();
debounce = debounceConstant;
trace("HOME hit");
}
else if ( (Key.isDown(47)) ) //help=47
{
trace("HELP hit");
debounce = debounceConstant;
}
else if ( (Key.isDown(Key.PGUP)) )
{
trace("PGUP hit");
debounce = debounceConstant;
}
The HOME key works fine, as does the PGUP key, however I get no response from the HELP key? Anyone else seen this? Know how to solve this?
The weird thing is that I can verify the keycode for the HELP key by doing a
trace(Key.getCode());
which outputs a “47” whenever I hit the help key
btw, I am using Flash 8.0 on OS X.4