Tag: combinations

  • AS3 – Detecting Control, Shift and Alt keyboard shortcuts

    AS3 – Detecting Control, Shift and Alt keyboard shortcuts

    Here is a snippet of code which allows you to detect keyboard shortcuts such as ctrl+[another key] and ctrl+shift+[another key]. I wasn’t able to find any decent examples of detecting shortcuts but after reading the AS3 documentation I found that the Keyboard event contains the following boolean properties [cc lang=”actionscript3″] ctrlKey shiftKey altKey [/cc] So…