https://www.mediawiki.org/wiki/Special:Code/MediaWiki/101915
Revision: 101915
Author: tparscal
Date: 2011-11-03 23:32:58 +0000 (Thu, 03 Nov 2011)
Log Message:
-----------
Added more key codes for the Apple command key to catch firefox and right
command on webkit
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-03 23:29:27 UTC (rev 101914)
+++ trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js
2011-11-03 23:32:58 UTC (rev 101915)
@@ -110,10 +110,6 @@
} );
};
-es.SurfaceView.prototype.hasSelection = function() {
- return !!this.selection.getLength();
-}
-
es.SurfaceView.prototype.onMouseDown = function( e ) {
if ( e.button === 0 /* left mouse button */ ) {
this.mouse.selecting = true;
@@ -170,7 +166,9 @@
case 18: // Alt
this.keyboard.keys.alt = true;
break;
- case 91: // Command
+ case 91: // Left Command in WebKit
+ case 93: // Right Command in WebKit
+ case 224: // Command in FireFox
this.keyboard.keys.command = true;
break;
case 36: // Home
@@ -223,7 +221,9 @@
case 18: // Alt
this.keyboard.keys.alt = false;
break;
- case 91: // Command
+ case 91: // Left Command in WebKit
+ case 93: // Right Command in WebKit
+ case 224: // Command in FireFox
this.keyboard.keys.command = false;
break;
default:
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs