Created
April 25, 2015 00:51
-
-
Save supernullset/7de2bb21543a7dfe2114 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
sendKeyPress: function() { | |
console.log('sendKeyPress'); | |
var $editor = $(this.get('editor').getDocument()).find('body'); | |
var keyEvent = $.Event( "keypress", { keyCode: 69, which: 69, charCode: 69 }); | |
$editor.focus(); | |
$editor.trigger(keyEvent); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment