Index: trunk/extensions/VisualEditor/modules/es/models/es.SurfaceModel.js |
— | — | @@ -115,9 +115,8 @@ |
116 | 116 | * |
117 | 117 | * @method |
118 | 118 | * @param {Integer} steps Number of steps to reverse |
119 | | - * @param {Boolean} soft Whether to consider selection states as steps |
120 | 119 | */ |
121 | | -es.SurfaceModel.prototype.undo = function( steps, soft ) { |
| 120 | +es.SurfaceModel.prototype.undo = function( steps ) { |
122 | 121 | // TODO: Implement me! |
123 | 122 | this.emit( 'undo'/*, transaction/selection*/ ); |
124 | 123 | }; |
— | — | @@ -127,9 +126,8 @@ |
128 | 127 | * |
129 | 128 | * @method |
130 | 129 | * @param {Integer} steps Number of steps to repeat |
131 | | - * @param {Boolean} soft Whether to consider selection states as steps |
132 | 130 | */ |
133 | | -es.SurfaceModel.prototype.redo = function( steps, soft ) { |
| 131 | +es.SurfaceModel.prototype.redo = function( steps ) { |
134 | 132 | // TODO: Implement me! |
135 | 133 | this.emit( 'redo'/*, transaction/selection*/ ); |
136 | 134 | }; |
Index: trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js |
— | — | @@ -401,18 +401,6 @@ |
402 | 402 | this.handleEnter(); |
403 | 403 | e.preventDefault(); |
404 | 404 | break; |
405 | | - // U (soft undo/soft redo) |
406 | | - case 85: |
407 | | - if ( e.metaKey || e.ctrlKey ) { |
408 | | - if ( this.keyboard.keys.shift ) { |
409 | | - this.model.redo( 1, true ); |
410 | | - } else { |
411 | | - this.model.undo( 1, true ); |
412 | | - } |
413 | | - return false; |
414 | | - } |
415 | | - handleInsert(); |
416 | | - break; |
417 | 405 | // Z (undo/redo) |
418 | 406 | case 90: |
419 | 407 | if ( e.metaKey || e.ctrlKey ) { |