Skip to content

Commit

Permalink
Merge pull request #246 from fl0l0u/patch-1
Browse files Browse the repository at this point in the history
Fix Issue #40
  • Loading branch information
gsamokovarov authored Oct 5, 2017
2 parents bc07283 + d4305c3 commit 0f65b93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/web_console/templates/console.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ REPLConsole.prototype.onKeyDown = function(ev) {
*/
REPLConsole.prototype.onKeyPress = function(ev) {
// Only write to the console if it's a single key press.
if (ev.ctrlKey || ev.metaKey) { return; }
if (ev.ctrlKey && !ev.altKey || ev.metaKey) { return; }
var keyCode = ev.keyCode || ev.which;
this.insertAtCurrent(String.fromCharCode(keyCode));
ev.stopPropagation();
Expand Down

0 comments on commit 0f65b93

Please sign in to comment.