Index: trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js |
— | — | @@ -348,9 +348,9 @@ |
349 | 349 | this.handleEnter(); |
350 | 350 | e.preventDefault(); |
351 | 351 | break; |
| 352 | + /* |
352 | 353 | case 90: // z (undo/redo) |
353 | 354 | if ( e.metaKey || e.ctrlKey ) { |
354 | | - /* |
355 | 355 | if ( this.keyboard.keys.shift ) { |
356 | 356 | this.history.redo(); |
357 | 357 | } else { |
— | — | @@ -361,9 +361,10 @@ |
362 | 362 | this.selection = selection.clone(); |
363 | 363 | this.showCursor(); |
364 | 364 | } |
365 | | - */ |
| 365 | + break; |
366 | 366 | } |
367 | | - break; |
| 367 | + // Fall through to default so the z key still otherwise works |
| 368 | + */ |
368 | 369 | default: // Insert content (maybe) |
369 | 370 | if ( this.keyboard.keydownTimeout ) { |
370 | 371 | clearTimeout( this.keyboard.keydownTimeout ); |