Thread: a few bugs
View Single Post
Old 08-13-2017, 07:13 AM   #28
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Quote:
Originally Posted by HarryT View Post
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/
Divingduck is offline   Reply With Quote