Thanks Garvalf for improving my understanding here relative to https://love2d.org/forums/viewtopic.php?p=257623#p257623 back in Nov 2023.
Levels of understanding:
There are probably devices out there that send other key combinations on altGr. I'll wait for people to chime in who can help test on those devices. In the fullness of time this probably requires some configuration: [ ] altGr is right alt [ ] altGr is ctrl+alt [ ] disable altGr
A7MKM5XLXTAJH34NI5L5N52N3QPUQMLZCYU2ZKOHN7X4LFZESAHQC A27WWJ6HGGI6T3PHDQOPFIOSWTPYUJTJ7RPEBBCIPG7QUS3PIC7QC 3GITFJZKVNOZGJR24ANV4FASDIXMCGMLTSVLIMXPVO2QYKYIHABAC BKX2TYUGRVEKPGG7B5PK5LUEPMAQLB7J6PFVJBVMSVVJFUMIPYPQC DRFE3B3ZKRG4RY2R5Q3SDFD3LH4EXUX3CZCDFBNAXVI2SLDS57PAC O4ZGUPZNPNAQUCBV47GSEH33HGIXYODGDMOG2PM3T6D7EVR5YEEAC BULPIBEGL7TMK6CVIE7IS7WGAHGOSUJBGJSFQK542MOWGHP2ADQQC KKMFQDR43ZWVCDRHQLWWX3FCWCFA3ZSXYOBRJNPHUQZR2XPKWULAC GIG6OV3GWLVCJS33OW7JOCNVMFTNTCNCFKYEN37ZDTKEQBKUMSXAC N2NUGNN4E37TNLC6JZE4H4HKJZPNVBV4VYTLXW57AP5BOU4ZK7LQC ZLJGZYQGQ2S4UFWTVF4PQDSGMP6A4IS4GDHCMBAAA5SK2N2NWR3QC 6LJZN727CRPYR34LV75CQF55YZI3E7MGESYZSFSYAE73SNEZE3FAC G6OYAYHUSMSPKLRW52LQDAF4NBHFPWY3GZAHZZDLJY2ZL6NLTNEQC 4QQBMWLLIA42YP6FBFC445ABQH62RRJBL5KKILTERJALPOJCYK4QC ETM7ENJRMQ3PFPGIKTEDCOTFW7LBOLE2YGIJCWSZB67ENAZGEHZQC 7IDHIAYI6QD7HU7VGOVO2FA7IG3NGD4TDH2Q2WPRDVXUR44OSFOQC UEE5W7WJ46FIBN4ZH45Z33L4RYXK5AP5ZIBHYTFOJTDWVVX54QKAC BH7BT36LM3D7HF3GOHXUPVNKLJ5LFJHOHRLD3KTC5HA627M3II4AC FS2ITYYHBLFT66YUC3ENPFYI2HOYHOVEPQIN7NQR6KF5MEK4NKZAC if App.any_modifier_down() thenif App.key_down(t) then-- The modifiers didn't change the key. Handle it in keychord_press.returnelse-- Key mutated by the keyboard layout. Continue below.end
-- textinput events can occur on chords with the shift key or AltGr key-- but not for ctrl, alt or cmd/super/guiif App.ctrl_down() or App.alt_down() or App.cmd_down() thenreturn
if App.any_modifier_down() thenif App.key_down(t) then-- The modifiers didn't change the key. Handle it in keychord_press.returnelse-- Key mutated by the keyboard layout. Continue below.end
-- textinput events can occur on chords with the shift key or AltGr key-- but not for ctrl, alt or cmd/super/guiif App.ctrl_down() or App.alt_down() or App.cmd_down() thenreturn
function App.any_modifier_down()return App.ctrl_down() or App.alt_down() or App.shift_down() or App.cmd_down()
-- Many keyboard layouts use a special altGr key to insert additional-- printable characters. SDL/LÖVE can't represent altGr distinctly.function alt_gr_down()return App.key_down('ralt')