When non-printable char is pressed, it’s replaced with let’s say for CTRL=17 with “[CTRL]”. Here is code an example the problem is when user presses backspace the second input must reflect the content of the first one, so “[CTRL]” must be deleted at once like any other chars. Answer You could make use of the keyCode and/or in combination with
Tag: non-printing-characters
How to replace non-printable unicode characters (Javascript)
I’ve already wasted a good amount of time dealing with strings (generated by some other source) and I found out that the problem was that the strings have non-printable characters. Today I am dealing with javascript. Does anyone know how to replace non-printable unicode characters in javascript? I found something similar here: How can I replace non-printable Unicode characters in