Multilanguage Support For Keyboard inputs?

Hi,

considering following code, how it’s possible to get actual character type instead of it’s code, regardless of keyboard language it always gives same key press code

input.on(Input.EventType.KEY_DOWN, (event: EventKeyboard)=>{
     console.log("event.keyCode: ", event.keyCode); //65 on keyA press 
}, this);

but following code works as per the keyboard language character typed and returns the actual character typed

document.addEventListener('keydown', function(event) {
    console.log('event.key:', event.key);
]});

how to access .key property or similar to access the actual character typed rather getting keyCodes which does not even support multilanguage as typing ф returns 65 code and typing ‘a’ also returns 65 code in first code sample

Take a look at this.

I tried but the issue is a certain key press always return the same keyCode regardless of it’s language, so let’s say if I press ‘a’ then it returns keycode 65, if I switch the language to Russian and now pressing ‘a’ key suppose to generate other than 65 keyCode which translates to symbol ‘ф’ using String.fromCharCode to get actual typed letter.

But the issue is it does not generate different keycode for same key regardless of language type

As can be seen in the video the standard keyboard event of browser has .key property which holds actual char typed, but cocos on top of it make it’s own EventKeyboard and get only the .code property from native event and fires.
I think in previous versions it was possible but not in 3.8

Have any solution, anyone?

What’s the reason for deprecating the native access since v3.3?