Permalink
Browse files

[dialog addon] Add kludge for IE focus bug

Issue #2191
  • Loading branch information...
1 parent bfa2a17 commit e77976b417eccab0a5f607c15a9e89770d9f8ede @marijnh marijnh committed Jan 30, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 addon/dialog/dialog.js
View
@@ -39,6 +39,7 @@
CodeMirror.on(inp, "keydown", function(e) {
if (options && options.onKeyDown && options.onKeyDown(e, inp.value, close)) { return; }
if (e.keyCode == 13 || e.keyCode == 27) {
+ inp.blur();
CodeMirror.e_stop(e);
close();
me.focus();

0 comments on commit e77976b

Please sign in to comment.