void paste(int target = 0)
Sends Ctrl+V to paste the current clipboard contents to target
Security
Trust Level Required: Full Trust
Parameters
Name | Description |
target |
(Optional) int Targets: Current = 0 (Sends to whatever currently has focus), Browser = 2 (Sends to the active browser). Defaults to 0. |
Return
Nothing returned
Examples
var pastebox = document.getElementById('pastebox');
setTimeout(function(){
KioUtils.setClipboard('Copied to clipboard from JS call');
console.log('Copied text to clipboard');
}, 1000);
pastebox.addEventListener('click', function(event){
KioUtils.paste();
console.log('Pasted text from clipboard');
});
Requirements
KioWare OS (Linux®) version 1.0 or greater.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.