According to my current understanding:-
Now, take for example the user presses the tab key.
Binary Value of the horizontal tab (if I'm not wrong) -
00001001
When this binary value is converted into its decimal equivalent, we get “9” as the value.
Now my doubt[s] are:-
I would be glad if you could help me out (in simple terms, of course), and please do point out if I am mistaken at something.
Thank you!
Okay, I think you were mission on 2 pretty important details.
Here they are:-
ASCII codes
are present for all the digits (0 through 9) as well, and that there is a different key code for the digit "9" and the decimal value "9", which, as @ggorlen pointed out, is the tab key.ASCII
(or any other type of character encoding) equivalent, instead of the decimal equivalent of a keypress's binary value.