Skip to content

Commit

Permalink
Merge pull request #37 from jessetane/copy-paste
Browse files Browse the repository at this point in the history
let copy / paste work on mac
  • Loading branch information
chjj committed Aug 3, 2015
2 parents b784bff + dbaf381 commit 517fcb6
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 @@ -2692,7 +2692,7 @@ Terminal.prototype.keyDown = function(ev) {
// ^] - group sep
key = String.fromCharCode(29);
}
} else if ((!this.isMac && ev.altKey) || (this.isMac && ev.metaKey)) {
} else if (ev.altKey) {
if (ev.keyCode >= 65 && ev.keyCode <= 90) {
key = '\x1b' + String.fromCharCode(ev.keyCode + 32);
} else if (ev.keyCode === 192) {
Expand Down

1 comment on commit 517fcb6

@sagar-chandarana
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copy paste doesn't seem to work on mac with 0.0.6, any idea?

Please sign in to comment.