Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed paste
Bumped bower version to 0.4
  • Loading branch information
parisk committed Apr 9, 2014
1 parent 6d152ed commit 4f2cadd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bower.json
@@ -1,5 +1,5 @@
{
"name": "xterm.js",
"version": "0.3",
"version": "0.4",
"ignore": ["demo", "docs", "test", ".gitignore"]
}
1 change: 0 additions & 1 deletion project

This file was deleted.

3 changes: 1 addition & 2 deletions src/xterm.js
Expand Up @@ -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 = '';
Expand Down

0 comments on commit 4f2cadd

Please sign in to comment.