Index: trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js |
— | — | @@ -323,6 +323,7 @@ |
324 | 324 | } |
325 | 325 | break; |
326 | 326 | case 8: // Backspace |
| 327 | + this.cursor.initialBias = this.cursor.initialLeft = null; |
327 | 328 | if ( this.selection.from === this.selection.to ) { |
328 | 329 | var sourceOffset = this.selection.to, |
329 | 330 | targetOffset = this.documentView.getModel().getRelativeContentOffset( sourceOffset, -1), |
— | — | @@ -369,6 +370,7 @@ |
370 | 371 | } |
371 | 372 | break; |
372 | 373 | case 46: // Delete |
| 374 | + this.cursor.initialBias = this.cursor.initialLeft = null; |
373 | 375 | if ( this.selection.from === this.selection.to ) { |
374 | 376 | var sourceOffset = this.documentView.getModel().getRelativeContentOffset( this.selection.to, 1), |
375 | 377 | targetOffset = this.selection.to, |
— | — | @@ -413,6 +415,7 @@ |
414 | 416 | } |
415 | 417 | break; |
416 | 418 | case 13: // Enter |
| 419 | + this.cursor.initialBias = this.cursor.initialLeft = null; |
417 | 420 | if ( this.selection.from === this.selection.to ) { |
418 | 421 | var node = this.documentView.getNodeFromOffset( this.selection.to, false ), |
419 | 422 | nodeOffset = this.documentView.getOffsetFromNode( node, false ); |
— | — | @@ -451,6 +454,7 @@ |
452 | 455 | e.preventDefault(); |
453 | 456 | break; |
454 | 457 | default: // Insert content (maybe) |
| 458 | + this.cursor.initialBias = this.cursor.initialLeft = null; |
455 | 459 | if ( this.keyboard.keydownTimeout ) { |
456 | 460 | clearTimeout( this.keyboard.keydownTimeout ); |
457 | 461 | } |