vendor/assets/javascripts/codemirror/addons/dialog/dialog.js in codemirror-rails-4.8 vs vendor/assets/javascripts/codemirror/addons/dialog/dialog.js in codemirror-rails-4.9

- old
+ new

@@ -71,10 +71,10 @@ if (e.keyCode == 27 || (options.closeOnEnter !== false && e.keyCode == 13)) { inp.blur(); CodeMirror.e_stop(e); close(); } - if (e.keyCode == 13) callback(inp.value); + if (e.keyCode == 13) callback(inp.value, e); }); if (options.closeOnBlur !== false) CodeMirror.on(inp, "blur", close); inp.focus();