Skip to content

Commit

Permalink
Merge pull request #1 from Azerothian/EventPropa
Browse files Browse the repository at this point in the history
fix for key combos pressed while terminal is active in atom
  • Loading branch information
Fatih Kadir AKIN committed May 15, 2014
2 parents 033da3e + 3835289 commit 3bcf61c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/term.js
Original file line number Diff line number Diff line change
Expand Up @@ -5622,10 +5622,11 @@ function off(el, type, handler, capture) {
}

function cancel(ev) {
if (ev.preventDefault) ev.preventDefault();
ev.returnValue = false;
if (ev.stopPropagation) ev.stopPropagation();
ev.cancelBubble = true;
// Commented this out as this stops atom from recieveing any key combos while terminal is active
//if (ev.preventDefault) ev.preventDefault();
//ev.returnValue = false;
//if (ev.stopPropagation) ev.stopPropagation();
//ev.cancelBubble = true;
return false;
}

Expand Down

0 comments on commit 3bcf61c

Please sign in to comment.