Good day.

Is it possible that on different machines or systems, the pressed ESC key (or any other key) will have a different numeric code? If yes, please explain under what conditions such a situation is possible (or indicate the source where you can read about it in detail).

    1 answer 1

    It never changes, it is reserved, why then is the ASCII table.

    • And if different keyboards have different models and / or different layouts? Also, nothing will change? I just read that different keyboards may have different scan codes of the same keys. - Bakuard
    • The answer was written, all the main keys are reserved for their numeric value and you can learn about these values ​​in ASCII, and it doesn’t matter which keyboard - Igoko
    • one
      @Bakuard You didn’t say a word about the scan codes. Yes, theoretically they may differ, but then the work of such a keyboard will be impossible without a separate driver and most importantly, you will not even go into the bios settings with such a keyboard, because the bios will also need a driver. Even if some keyboard maker will go for it and change the scan-code Esc, then with a normal driver you will not even know about it, because the OS already works with ascii codes, and the driver will translate scans into ascii perfectly. - Mike
    • Thank you, Mike. The situation cleared up. From your words, I understood the following - ascii is a standard for all keyboards familiar to us and there is nothing to worry about. And if the keyboards have different number of keys? Suppose this is some kind of keyboard for entering text in Chinese or Japanese. In this case, the number of keys, their location, purpose may differ from our usual keyboards. What then in this case? Is some kind of extension used for ascii or something else? - Bakuard