Created
December 17, 2010 07:20
-
-
Save destroytoday/744603 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var hotkeyManager:HotkeyManager = new HotkeyManager(stage); | |
// use-case with handlers | |
hotkeyManager.createHotkey("@").executed.add(lookupUserHotkeyHandler); | |
hotkeyManager.createHotkey("command+s").executed.add(saveHotkeyHandler); | |
// use-case with commands | |
signalCommandMap.mapSignal(hotkeyManager.createHotkey("@").executed, lookupUserCommand); | |
signalCommandMap.mapSignal(hotkeyManager.createHotkey("command+s").executed, saveCommand); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment