In-progress note-taking app based on lines.love

better support other keyboard layouts

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:

  • never trigger both textinput and keypressed, so never trigger textinput if a modifier is down
  • wait, shift is a modifier. Ok, ignore modifiers except shift.
  • ctrl can never be triggered anyway. get rid of the whole modifier check.
  • wait, alt-c does trigger textinput('c')
  • allow textinput if a modifier changes the key being pressed
  • and now: turns out azerty requires shift to turn keypress '1' into textinput '1'. Better understand that layout and others. Textinput events can be triggered by either shift or altGr combinations. altGr isn't directly represented by LÖVE. It's usually the right alt key.

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

Created by  akkartik  yesterday at 13:32
A7MKM5XLXTAJH34NI5L5N52N3QPUQMLZCYU2ZKOHN7X4LFZESAHQC
Change contents