I am trying to capture control+S in a Windows file running in the Flash 8/9 player (IE 6). This is because I have a save feature in my RIA. I can capture "S" being down, I can capture "Ctrl" being down, I can capture ctrl+7 being down, but not ctrl+s? I even tried capturing ctrl+g (g is keycode 71)and that didn't work either. Any ideas?
keyListener = new Object(); keyListener.onKeyDown = function(){ trace(Key.getCode()); //(83 is keycode for letter "s") if (Key.isDown(Key.CONTROL) && Key.getCode() == 83){ trace("Control+S was pressed")//never fires } } Key.addListener(keyListener); In the following code, Key.isDown(Key.CONTROL) && Key.getCode() == 55 works fine to capture ctrl+7. keyListener = new Object(); keyListener.onKeyDown = function(){ trace(Key.getCode()); //(55 is keycode for number "7") if (Key.isDown(Key.CONTROL) && Key.getCode() == 55){//55 capture Ctrl+7 trace("Control+7 was pressed")//fires fine } } Key.addListener(keyListener); Is capturing ctrl+s not allowed?? I also tried Key.isDown(83) instead of Key.getCode() == 83 but no luck either. I am testing in the browser, not in the IDE, so I wouldn't think it's a keyboard shortcut thing. What's going on here? Jason Merrill Bank of America Learning & Organization Effectiveness - Technology Solutions _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com