mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Fixed paste
Bumped bower version to 0.4
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "xterm.js",
|
||||
"version": "0.3",
|
||||
"version": "0.4",
|
||||
"ignore": ["demo", "docs", "test", ".gitignore"]
|
||||
}
|
||||
+1
-2
@@ -416,10 +416,9 @@ Terminal.prototype.initGlobal = function() {
|
||||
*/
|
||||
Terminal.bindPaste = function(term) {
|
||||
on([term.textarea, term.element], 'paste', function(ev) {
|
||||
ev.stopPropagation();
|
||||
ev.stopPropagation[();
|
||||
if (ev.clipboardData) {
|
||||
var text = ev.clipboardData.getData('text/plain');
|
||||
term.write(text);
|
||||
term.handler(text);
|
||||
}
|
||||
term.textarea.value = '';
|
||||
|
||||
Reference in New Issue
Block a user