Fixed paste

Bumped bower version to 0.4
This commit is contained in:
paris
2014-04-09 15:37:45 +00:00
parent 6d152ed766
commit 4f2cadd6c9
3 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -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 = '';