mirror of
				https://git.proxmox.com/git/mirror_xterm.js
				synced 2025-10-31 12:50:13 +00:00 
			
		
		
		
	Copy and Paste seem to work.
This commit is contained in:
		
							parent
							
								
									e2c2630873
								
							
						
					
					
						commit
						473d45f425
					
				| @ -416,10 +416,12 @@ Terminal.prototype.initGlobal = function() { | ||||
|  */ | ||||
| Terminal.bindPaste = function(term) { | ||||
|   on([term.textarea, term.element], 'paste', function(ev) { | ||||
|     ev.stopPropagation(); | ||||
|     if (ev.clipboardData) { | ||||
|       term.send(ev.clipboardData.getData('text/plain')); | ||||
|     } else if (term.context.clipboardData) { | ||||
|       term.send(term.context.clipboardData.getData('Text')); | ||||
|       var text = ev.clipboardData.getData('text/plain'); | ||||
|       for (var i=0; i<text.length; i++) { | ||||
|         term.write(text[i]);  | ||||
|       } | ||||
|     } | ||||
|     term.textarea.value = ''; | ||||
|     return term.cancel(ev); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 paris
						paris