-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Description
It should be possible to handle system clipboard by capturing C-c keydown event and creating almost hidden (ie. 1px*1px) text component and doing select() on it.
I was using keyboard shortcuts library with following code to achieve something similar:
shortcut.add("Ctrl+C", function() {
var k=document.getElementById("clipboard");
// populate k with text
k.select();
}, { propagate: true });
Pasting can be handled in the same way.
I have tested this approach on Chrome, Firefox 3.6 and IE8.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels