Skip to content
Snippets Groups Projects
Commit e77976b4 authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

[dialog addon] Add kludge for IE focus bug

Issue #2191
parent bfa2a17e
No related branches found
No related tags found
No related merge requests found
......@@ -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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment