PDA

View Full Version : CTRL-Key not catchable in Scaleform...



Jontti
11-30-2010, 07:53 AM
I have been able to catch almost all keys within flash but I havn't bee able to catch CTRL :(



keyListener.onKeyDown = function() {

DebugTxtOutput("This key was pressed: " + Key.getCode());

}


NOTE! DebugTxtOutput is just a function for me to print stuff on the screen instead of using trace and it works...

On a CRTL press it should return "This key was pressed: 17"... But CRTL returns nothing, zip, null, nada... :(

And it works fine in the regular Flash viewer...

Any clues?

Matt Doyle
11-30-2010, 11:20 AM
CTRL is reserved in GFx player; however, you can toggle it using F9. So press F9, and you should then see CTRL working with Key.getCode();

And it should work fine in UDK, without needing to toggle it.

Jontti
12-01-2010, 05:24 AM
Okidoki will try it...

Thanks for the quick response! :D