Added data handling on paste
Also bumped version to 0.3 for bower
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "xterm.js",
|
"name": "xterm.js",
|
||||||
"version": "0.2",
|
"version": "0.3",
|
||||||
"ignore": ["demo", "docs", "test", ".gitignore"]
|
"ignore": ["demo", "docs", "test", ".gitignore"]
|
||||||
}
|
}
|
||||||
+2
-3
@@ -419,9 +419,8 @@ Terminal.bindPaste = function(term) {
|
|||||||
ev.stopPropagation();
|
ev.stopPropagation();
|
||||||
if (ev.clipboardData) {
|
if (ev.clipboardData) {
|
||||||
var text = ev.clipboardData.getData('text/plain');
|
var text = ev.clipboardData.getData('text/plain');
|
||||||
for (var i=0; i<text.length; i++) {
|
term.write(text);
|
||||||
term.write(text[i]);
|
term.handler(text);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
term.textarea.value = '';
|
term.textarea.value = '';
|
||||||
return term.cancel(ev);
|
return term.cancel(ev);
|
||||||
|
|||||||
Reference in New Issue
Block a user