Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
destroytoday committed Dec 19, 2010
1 parent 2c6322f commit 463e90b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.textile
Expand Up @@ -24,6 +24,18 @@ Or, you can use the createHotkey method to instantiate and automatically add it
var openHotkey:Hotkey = hotkeyManager.createHotkey("command+o");
</pre>

h3. Listening

Hotkeys use signals to indicate they have been executed, so you can listen directly to the signal or you can map it to a command.

<pre>
hotkeyManager.createHotkey("command+c").executed.add(copyHotkeyHandler);
</pre>

<pre>
signalCommandMap.mapSignal(hotkeyManager.createHotkey("command+c").executed, CopyCommand);
</pre>

h3. Case-sensitivity

Char-based hotkeys are case-sensitive, as demonstrated with the conditions below:
Expand Down

0 comments on commit 463e90b

Please sign in to comment.