r102071 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102070‎ | r102071 | r102072 >
Date:23:32, 4 November 2011
Author:inez
Status:deferred
Tags:
Comment:
Minor fix
Modified paths:
  • /trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js
@@ -300,20 +300,21 @@
301301 this.cursor.initialBias = false;
302302 }
303303
304 - if ( !this.keyboard.keys.shift ) {
305 - if ( this.selection.from !== this.selection.to ) {
306 - this.documentView.clearSelection();
307 - }
308 - this.selection.from = this.selection.to = newTo;
309 - this.showCursor();
310 - } else {
 304+ if ( this.keyboard.keys.shift ) {
311305 this.selection.to = newTo;
312306 if ( this.selection.from !== this.selection.to ) {
313307 this.documentView.drawSelection( this.selection );
314308 this.hideCursor();
315309 } else {
 310+ this.documentView.clearSelection();
316311 this.showCursor();
317312 }
 313+ } else {
 314+ if ( this.selection.from !== this.selection.to ) {
 315+ this.documentView.clearSelection();
 316+ }
 317+ this.selection.from = this.selection.to = newTo;
 318+ this.showCursor();
318319 }
319320 };
320321

Status & tagging log