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.
It should be possible to handle system clipboard by capturing
C-ckeydown 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:
Pasting can be handled in the same way.
I have tested this approach on Chrome, Firefox 3.6 and IE8.