Save note on forward-delete when text is selected

This doesn't generate a keypress event for some reason, even though it
does when no text is selected.
This commit is contained in:
Dan Stillman 2017-10-08 17:59:40 -04:00
parent 4fb8f44d01
commit 8f3909713f

View file

@ -416,6 +416,12 @@
this.redo();
return;
}
// Handle forward-delete, which doesn't register as a keypress
// when a selection is cleared
if (event.which == event.DOM_VK_DELETE) {
this._changed = true;
commandEvent = true;
}
break;
case 'keypress':