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
+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);