KeyTable - Support typing "control/c" to copy the data of the selected cell in to the copy buffer
KeyTable - Support typing "control/c" to copy the data of the selected cell in to the copy buffer
smelcher
Posts: 45Questions: 13Answers: 0
The "key" event does not seem to capture the "control" button (test in Chrome). My end goal is to hit "control/C" and have the system put the data of the cell in to my copy buffer. Is this possible?
Thanks
This discussion has been closed.
Answers
Interesting idea. That isn't something that is built into KeyTable, but support for copy and paste in a cell could be really neat.
The way I'd approach this is:
cell().data()
)execCommand
Allan
I'm struggling to capture ctrl+c. When I push the ctrl key it does not fire the key event. Is there another event I should be using?
You need to check the information that is available in the event object. The MDN documentation covers this.
Allan
A really janky solution: