r92146 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92145‎ | r92146 | r92147 >
Date:09:30, 14 July 2011
Author:hashar
Status:deferred
Tags:
Comment:
* fix up selection which only possible once.
* add support for 'control' keycode (17)
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.Surface.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.Surface.js
@@ -107,6 +107,9 @@
108108 this.drawSelection();
109109 }
110110 break;
 111+ case 17: // Control
 112+ this.ctrlDown = true;
 113+ break;
111114 case 37: // Left arrow
112115 this.initialHorizontalCursorPosition = null;
113116 this.moveCursorLeft();
@@ -179,7 +182,13 @@
180183 switch ( e.keyCode ) {
181184 case 16: // Shift
182185 this.shiftDown = false;
 186+ if ( this.keyboardSelecting ) {
 187+ this.keyboardSelecting = false;
 188+ }
183189 break;
 190+ case 17: // Control
 191+ this.ctrlDown = false;
 192+ break;
184193 default:
185194 var surface = this;
186195 setTimeout( function() {

Status & tagging log