vendor/assets/javascripts/codemirror/addons/dialog/dialog.js in codemirror-rails-3.21 vs vendor/assets/javascripts/codemirror/addons/dialog/dialog.js in codemirror-rails-3.22

- old
+ new

@@ -37,9 +37,10 @@ if (inp) { if (options && options.value) inp.value = options.value; 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(); if (e.keyCode == 13) callback(inp.value); }