Fix for native deletion - it was breaking document (model and view) when deleting really fast (holding the key for example). This solution completely fix the problem, however it is not optimal - stop and start is called more often than should be.

Change-Id: Ied5b34f92056407311aa1e84fbff35943138987f
This commit is contained in:
Inez Korczyński 2012-10-18 13:22:20 -07:00
parent 7ee5245a2d
commit 6735a47dcb

View file

@ -460,10 +460,14 @@ ve.ce.Surface.prototype.onKeyDown = function ( e ) {
// Backspace
case 8:
this.handleDelete( e, true );
this.surfaceObserver.stop(true);
this.surfaceObserver.start();
break;
// Delete
case 46:
this.handleDelete( e, false );
this.surfaceObserver.stop(true);
this.surfaceObserver.start();
break;
// B
case 66: