From 634b095177c4db7efe584be5d5df11e9d7dfa4f7 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Sun, 29 Jun 2008 15:25:09 -0700 Subject: [PATCH] When using custom backspace code in IE, don't require that we're in a link. This means that if you're at the end of the link but not in link mode, the custom backspace code is still used. --- static/js/Wiki.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/Wiki.js b/static/js/Wiki.js index 7dde35d..23b89a0 100644 --- a/static/js/Wiki.js +++ b/static/js/Wiki.js @@ -999,7 +999,7 @@ Wiki.prototype.editor_key_pressed = function ( editor, event ) { } event.stop(); // IE: hitting backspace while making a link shouldn't end the link - } else if ( code == 8 && editor.document.selection && editor.state_enabled( "a" ) ) { + } else if ( code == 8 && editor.document.selection ) { var range = editor.document.selection.createRange(); range.moveStart( "character", -1 ); range.text = "";