Created
April 24, 2009 10:24
-
-
Save maiha/101050 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
| Xinha.prototype._shortCuts = function (ev) | |
| { | |
| var key = this.getKey(ev).toLowerCase(); | |
| var cmd = null; | |
| var value = null; | |
| switch (key) | |
| { | |
| // simple key commands follow | |
| case 'b': cmd = "bold"; break; | |
| case 'i': cmd = "italic"; break; | |
| case 'u': cmd = "underline"; break; | |
| case 's': cmd = "strikethrough"; break; | |
| case 'l': cmd = "justifyleft"; break; | |
| case 'e': cmd = "justifycenter"; break; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment