Skip to content

Commit

Permalink
Reduce ctrl intercept scope
Browse files Browse the repository at this point in the history
Make sure only the ctrl key is modifying the currently pressed key when
intercepting for an escape code sequence. This reduces the number of key
combinations the terminal interrupts.
  • Loading branch information
jeremyramin committed Nov 2, 2015
1 parent b70fb6f commit 85e8373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/term.js
Original file line number Diff line number Diff line change
Expand Up @@ -2832,7 +2832,7 @@ Terminal.prototype.keyDown = function(ev) {
break;
default:
// a-z and space
if (ev.ctrlKey && !ev.shiftKey) {
if (ev.ctrlKey && !ev.shiftKey && !ev.altKey && !ev.metaKey) {
if (ev.keyCode >= 65 && ev.keyCode <= 90) {
// Ctrl-A
if (this.screenKeys) {
Expand Down

0 comments on commit 85e8373

Please sign in to comment.