Posted 28 March 2018, 3:42 pm EST
I would like to use the clipboard functionality from a context menu. I am trying to work within the requirements that the copy and paste methods only work right after a ctrl-c or ctrl-v key press. In Angular, I am trying to dispatch a keyboard event with the two events in question. I can set the key and the code but not the keyCode of the event. It seems as though the clipboard is looking specifically for the keyCode, which is a depreciated property and readonly.
Is there anyway to use the clipboard without having a key press right before or do you know of a way to get the keyboardevent to return the correct code?
Thanks
