Permalink
Browse files

Handle code complete properly, and ignore when appropriate

  • Loading branch information...
1 parent 9f07e5b commit dda20c455cfd138b43736ea4b286b3f33e35eb3d @remy remy committed Apr 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/editors/keycontrol.js
View
2 js/editors/keycontrol.js
@@ -118,7 +118,7 @@ function keycontrol(event) {
$body.removeClass('keyboardHelp');
keyboardHelpVisible = false;
event.stop();
- } else if (event.which == 27) {
+ } else if (event.which == 27 && jsbin.panels.focused && codePanel) {
event.stop();
return startComplete(panel);
} else if (event.which == 190 && event.altKey && event.metaKey && panel.id == 'html') {

0 comments on commit dda20c4

Please sign in to comment.