Added data handling on paste

Also bumped version to 0.3 for bower
This commit is contained in:
paris
2014-04-09 14:43:43 +00:00
parent 04d7bd4401
commit 6d152ed766
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "xterm.js",
"version": "0.2",
"version": "0.3",
"ignore": ["demo", "docs", "test", ".gitignore"]
}
Symlink
+1
View File
@@ -0,0 +1 @@
/mnt/project/
+2 -3
View File
@@ -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);