void setClipboardPaste(string pasteData, int target = 0)
Sends the provided string directly to the 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.
Remarks
This is a convenience function that calls both KioUtils.setClipboard(pasteData) and KioUtils.paste(target)
Examples
var pastebox = document.getElementById('pastebox');
pastebox.addEventListener('click', function(event){
KioUtils.setClipboardPaste('Copied to clipboard from JS call');
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.