YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
15 stars 7 forks source link

In-Game: [Android] Samsung Keyboard often ignores the OS language and sets itself to English #4481

Open gm-bug-reporter[bot] opened 5 months ago

gm-bug-reporter[bot] commented 5 months ago

Description

Hello the functions for calling and checking android keyboard does not function correctly in Samsung devices (with Samsung keyboard being set), I faced with two issues

  1. The keyboard changes language to English automatically after tapping on one letter in keyboard (my native language is Persian)
  2. sometimes after closing and opening keyboard for multiple times gamemaker thinks it is open but in reality it is closed!

Steps To Reproduce

  1. Use a object to show and hide keyboard and showing the status of keyboard
  2. Export for android
  3. Install it on a samsung device with samsung keyboard
  4. Test the app and try to write in a language other than English
  5. Make sure your keyboard has been set to Samsung keyboard
  6. For Issue number 2 you should close and open it multiple times, and check the keyboard status for being contradictory

ab21440c-f337-486d-8567-5a7858921547

stuckie commented 5 months ago

Can we have a project please? There are various methods of bringing the keyboard up, and we need to know which path you are using.

imanbeik commented 5 months ago

KeyboardTest.zip Thank you, I'm waiting for your answer I also tried with other languages and no matter which language I tried all of them will change when you type one letter(in Samsung keyboard)

imanbeik commented 5 months ago

How long it takes to be fixed?, sorry I'm new to here and fixing this bug is very important to me 😢

alidehkhodaei commented 5 months ago

@yoyo-danielc Please check out this issue. Thank you.

MahradH commented 5 months ago

I have the same problem, but I think its a Samsung keyboard bug, not GameMaker. This is related: link

alicemoretti commented 1 month ago

I was able to reproduce the first issue (the keyboard swapping to English after typing a letter from a different language) on IDE v2024.4.1.152 Runtime v2024.4.1.201 and Beta IDE v2024.600.0.575 Beta Runtime v2024.600.0.601 using the project attached.

I was not able to reproduce the second issue ( the keyboard state not reporting correctly) on the same versions. I have tested this by adding show_debug_message(string(keyboard_virtual_status())) to the step event of the object.

The device using for testing it Samsung Galaxy S20 FE running One UI 5.1 , Android version 13

sihammill commented 1 month ago

Same as Alice above, I was also able to reproduce the first issue but also found that if I swapped keyboard language, if I then hid the keyboard then brought it back up, the language would revert to English too.

I was using a Samsung S21 on One UI v6.1 Android Version 14

yoyo-danielc commented 1 month ago

if I swapped keyboard language, if I then hid the keyboard then brought it back up, the language would revert to English too.

@sihammill were you hiding/showing it with the GameMaker APIs, or a user-facing command on the device to hide/show the keyboard?