Quote:
Originally Posted by HarryT
Windows treats "AltGr" and "Ctrl + Alt" identically; they generate the same scan code and can't be distinguished.
|
I think this is a bit more complicated as this depends on virtual key mappings, hardware and operating system (and is often a source of mess if you are looking for a general solution e.g. for mobile device keyboards like laptops). What you describe is correct for US keyboard mappings. International keyboards have different key codes for left-/right-hand key's depending on language, keyboard layout (hardware) and mappings in programs / operating systems. For e.g. german keyboards ALT and ALTGR have different codes and in addition depending on the virtual mapping it sometimes have not the same behavior as STRG+ALT (or CTRL+ALT).
For reference an informative article regarding keyboard handling in windows:
https://blog.molecular-matters.com/2...eyboard-input/