I'm attempting to do something like the following:
let text = (event.ctrlKey) ? '\u0003' : String.fromCharCode(event.charCode || event.keyCode);
this.sendNewValue(text);
At the moment, text
is always going to equal '\u0003'
(ctrl+c for reference), as long as the control key is being held down, no matter what other key is also being pressed.
Is there a way for me to get the ASCII value for control key + [any key], ie.
ctrl+r
= [some ASCII string]