Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4f2cadd6c9 |
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "xterm.js",
|
"name": "xterm.js",
|
||||||
"version": "0.3",
|
"version": "0.4",
|
||||||
"ignore": ["demo", "docs", "test", ".gitignore"]
|
"ignore": ["demo", "docs", "test", ".gitignore"]
|
||||||
}
|
}
|
||||||
+1
-2
@@ -416,10 +416,9 @@ Terminal.prototype.initGlobal = function() {
|
|||||||
*/
|
*/
|
||||||
Terminal.bindPaste = function(term) {
|
Terminal.bindPaste = function(term) {
|
||||||
on([term.textarea, term.element], 'paste', function(ev) {
|
on([term.textarea, term.element], 'paste', function(ev) {
|
||||||
ev.stopPropagation();
|
ev.stopPropagation[();
|
||||||
if (ev.clipboardData) {
|
if (ev.clipboardData) {
|
||||||
var text = ev.clipboardData.getData('text/plain');
|
var text = ev.clipboardData.getData('text/plain');
|
||||||
term.write(text);
|
|
||||||
term.handler(text);
|
term.handler(text);
|
||||||
}
|
}
|
||||||
term.textarea.value = '';
|
term.textarea.value = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user