Skip to content

Commit

Permalink
Restore editor keyEvent.
Browse files Browse the repository at this point in the history
This one wasn't fully deprecated (no warning in console, still in documentation) and there
are still a number of extensions that depend upon it.

Revert "Deprecated by adobe#6787"

This reverts commit 2e7bc6a.
  • Loading branch information
dangoor committed Oct 31, 2014
1 parent 57b90c6 commit 25cb91c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/editor/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,7 @@ define(function (require, exports, module) {

// Redispatch these CodeMirror key events as jQuery events
function _onKeyEvent(instance, event) {
$(self).triggerHandler("keyEvent", [self, event]); // deprecated
$(self).triggerHandler(event.type, [self, event]);
return event.defaultPrevented; // false tells CodeMirror we didn't eat the event
}
Expand Down

0 comments on commit 25cb91c

Please sign in to comment.