Fixed an Internet Explorer bug in which backspace sometimes didn't work, such as when backspacing an empty list element.
This commit is contained in:
parent
033833b00b
commit
3da951b0ba
2
NEWS
2
NEWS
|
@ -7,6 +7,8 @@
|
|||
* Fixed a Chrome/Safari bug in which ending a link didn't always work.
|
||||
* Fixed a rare Chrome/Safari bug in which pressing backspace sometimes made
|
||||
the text cursor vanish.
|
||||
* Fixed an Internet Explorer bug in which backspace sometimes didn't work,
|
||||
such as when backspacing an empty list element.
|
||||
|
||||
1.5.8: November 24, 2008
|
||||
* Fixed a bug that prevented notes from being automatically saved in certain
|
||||
|
|
|
@ -1154,8 +1154,10 @@ Wiki.prototype.editor_key_pressed = function ( editor, event ) {
|
|||
} else if ( code == 8 && editor.document.selection ) {
|
||||
var range = editor.document.selection.createRange();
|
||||
range.moveStart( "character", -1 );
|
||||
range.text = "";
|
||||
event.stop();
|
||||
if ( range.text != "" ) {
|
||||
range.text = "";
|
||||
event.stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue