witten
/
luminotes
Archived
1
0
Fork 0

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:
Dan Helfman 2008-12-03 16:27:01 -08:00
parent 033833b00b
commit 3da951b0ba
2 changed files with 6 additions and 2 deletions

2
NEWS
View File

@ -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

View File

@ -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();
}
}
}