Skip to content

Commit

Permalink
Added data handling on paste
Browse files Browse the repository at this point in the history
Also bumped version to 0.3 for bower
  • Loading branch information
parisk committed Apr 9, 2014
1 parent 04d7bd4 commit 6d152ed
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "xterm.js",
"version": "0.2",
"version": "0.3",
"ignore": ["demo", "docs", "test", ".gitignore"]
}
1 change: 1 addition & 0 deletions project
5 changes: 2 additions & 3 deletions src/xterm.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,8 @@ Terminal.bindPaste = function(term) {
ev.stopPropagation();
if (ev.clipboardData) {
var text = ev.clipboardData.getData('text/plain');
for (var i=0; i<text.length; i++) {
term.write(text[i]);
}
term.write(text);
term.handler(text);
}
term.textarea.value = '';
return term.cancel(ev);
Expand Down

0 comments on commit 6d152ed

Please sign in to comment.