r103874 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103873‎ | r103874 | r103875 >
Date:23:54, 21 November 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Added support for meta key (mac command key) for undo/redo
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
@@ -352,12 +352,12 @@
353353 e.preventDefault();
354354 break;
355355 case 90: // z (undo)
356 - if ( e.ctrlKey ) {
 356+ if ( e.metaKey || e.ctrlKey ) {
357357 this.history.undo();
358358 }
359359 break;
360360 case 89: // y (redo)
361 - if ( e.ctrlKey ) {
 361+ if ( e.metaKey || e.ctrlKey ) {
362362 this.history.redo();
363363 }
364364 break;

Status & tagging log