mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
Fixed breaks in a switch being inside ifs, causing them not to properly terminate the switch
This commit is contained in:
parent
631323b9bd
commit
70147a166d
|
@ -354,13 +354,13 @@ es.SurfaceView.prototype.onKeyDown = function( e ) {
|
|||
case 90: // z (undo)
|
||||
if ( e.ctrlKey ) {
|
||||
this.history.undo();
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 89: // y (redo)
|
||||
if ( e.ctrlKey ) {
|
||||
this.history.redo();
|
||||
break;
|
||||
}
|
||||
break;
|
||||
default: // Insert content (maybe)
|
||||
if ( this.keyboard.keydownTimeout ) {
|
||||
clearTimeout( this.keyboard.keydownTimeout );
|
||||
|
|
Loading…
Reference in a new issue