Index: trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js |
— | — | @@ -300,20 +300,21 @@ |
301 | 301 | this.cursor.initialBias = false; |
302 | 302 | } |
303 | 303 | |
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 ) { |
311 | 305 | this.selection.to = newTo; |
312 | 306 | if ( this.selection.from !== this.selection.to ) { |
313 | 307 | this.documentView.drawSelection( this.selection ); |
314 | 308 | this.hideCursor(); |
315 | 309 | } else { |
| 310 | + this.documentView.clearSelection(); |
316 | 311 | this.showCursor(); |
317 | 312 | } |
| 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(); |
318 | 319 | } |
319 | 320 | }; |
320 | 321 | |