Fixed breaks in a switch being inside ifs, causing them not to properly terminate the switch

This commit is contained in:
Trevor Parscal 2011-11-21 23:53:37 +00:00
parent 631323b9bd
commit 70147a166d

View file

@ -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 );