From 70147a166d102437c476482fae42be9405ea0e57 Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Mon, 21 Nov 2011 23:53:37 +0000 Subject: [PATCH] Fixed breaks in a switch being inside ifs, causing them not to properly terminate the switch --- modules/es/views/es.SurfaceView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/es/views/es.SurfaceView.js b/modules/es/views/es.SurfaceView.js index 7deb62558f..c939b0765e 100644 --- a/modules/es/views/es.SurfaceView.js +++ b/modules/es/views/es.SurfaceView.js @@ -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 );