Skip to content

Commit

Permalink
Merge pull request nytimes#2 from danransom/patch-2
Browse files Browse the repository at this point in the history
enables default backspace and delete key when ICE is not tracking
  • Loading branch information
catsgotmytongue committed Aug 23, 2013
2 parents 59d022b + 2fa1bea commit b44c24f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tinymce/jscripts/tinymce4/plugins/ice/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
// make sure only the plugin is handling this event and not the editor
ed.on('keydown', function(e) {
// prevent the delete key and backspace keys from firing twice
if(e.keyCode == 46 || e.keyCode==8) {
if((e.keyCode == 46 || e.keyCode == 8) && self.isTracking) {
e.preventDefault();
}
});
Expand Down

0 comments on commit b44c24f

Please sign in to comment.