I used a SO answer in my page for saving text on Ctrl+S, but as I don't like just copy-pasting without understanding first, I decided to do so first. It's a simple jQuery script, which I converted (still working) to this:
/* A key is pressed */
$(window).keypress(function(event) {
/* Ctrl + S or ?? */
if ((event.which == 115 && event.ctrlKey) || (event.which == 19)) {
savedata();
event.preventDefault();
}
});
The bit I'm asking about is event.which == 19
. A quick search on ASCII codes tells me it's "Device Control 3 (oft. XOFF)". However, the link of XOFF and google didn't bring much light to the subject. So,
Is the ASCII character 19 (Device Control 3) still used in some computers/keyboards/other devices or can I securely delete that bit?
Note: I want to delete it so I can change it to a switch and I don't have any hanging, not understood code.