Inventory Profiles Next

Inventory Profiles Next

23M Downloads

[Suggestion] Support for non-English keyboards

agent-LuluDodo opened this issue ยท 2 comments

commented

Suggestion

Hi, I noticed some Keys get displayed incorrectly with Keyboard layouts different from English. My Keyboard for example has the 'y' and 'z' keys flipped. They still work as intended, so it's just a minor incontinence.
My guess is that you get the key code and use a lookup table for the character.
Also, the mod is awesome!

Implementation

I have no experience with Kotlin, but I did some research and found the functions getDisplayLabel() and getUnicodeChar(). I don't know if you already use these / they are not usable in the situation or if the Problem is just something with me, but I thought I would let you know :)

commented

yes a lookup table is used

the suggested apis are android specific.

minecraft uses opengl scan codes I'll check if there is information about the scan code translation.

commented

Oh, ok.