https://www.mediawiki.org/wiki/Special:Code/MediaWiki/102071
Revision: 102071
Author: inez
Date: 2011-11-04 23:32:46 +0000 (Fri, 04 Nov 2011)
Log Message:
-----------
Minor fix
Modified Paths:
--------------
trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js
Modified: trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js
===================================================================
--- trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js
2011-11-04 23:28:40 UTC (rev 102070)
+++ trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js
2011-11-04 23:32:46 UTC (rev 102071)
@@ -300,20 +300,21 @@
this.cursor.initialBias = false;
}
- if ( !this.keyboard.keys.shift ) {
- if ( this.selection.from !== this.selection.to ) {
- this.documentView.clearSelection();
- }
- this.selection.from = this.selection.to = newTo;
- this.showCursor();
- } else {
+ if ( this.keyboard.keys.shift ) {
this.selection.to = newTo;
if ( this.selection.from !== this.selection.to ) {
this.documentView.drawSelection( this.selection );
this.hideCursor();
} else {
+ this.documentView.clearSelection();
this.showCursor();
}
+ } else {
+ if ( this.selection.from !== this.selection.to ) {
+ this.documentView.clearSelection();
+ }
+ this.selection.from = this.selection.to = newTo;
+ this.showCursor();
}
};
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs