3 ms·
I wasn't able to get this to work. Do I need to use CNTRL + C?
by gravypod 10y ago
I wasn't able to get this to work. Do I need to use CNTRL + C?
- ipsin 10y agoI had a similar experience in Chrome, pasting into gedit. Ctrl-C/Ctrl-V works, but menu copy/paste doesn't.
- jaybosamiya 10y agoIf you read the source of the website, it has a > document.addEventListener('keydown', function(event) { ... }) Basically, press any key on your keyboard on the website, and it'll work.
- grenoire 10y agoYou do have to use the keyboard shortcut. It executes the snippet regardless of which key sequence you press though ('keydown' event on document). It may also be because you have no support for execCommand if it didn't work for CTRL+C.