mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
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:
parent
7ee5245a2d
commit
6735a47dcb
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue