javascript - Is ASCII 19 used? -


i used answer in page saving text on ctrl+s, don't copy-pasting without understanding first, decided first. it's simple jquery script, converted (still working) this:

/* key 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 event.which == 19. quick search on ascii codes tells me it's "device control 3 (oft. xoff)". however, the link of xoff , google didn't bring light subject. so,

is ascii character 19 (device control 3) still used in computers/keyboards/other devices or can securely delete bit?

note: want delete can change switch , don't have hanging, not understood code.

afair which key scancode, not ascii code. anyway, code 19 should stand key arrow or somewhat, doesn't have printable representation letter or digit. e.g. [esc] has code 27.

http://www.cambiaresearch.com/articles/15/javascript-char-codes-key-codes - looks correct.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -