Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In-Game: [Android] keyboard_virtual_status() returns "true" even if the keyboard is hidden #8134

Open
shichen85 opened this issue Oct 25, 2024 — with GM Bug Reporter · 1 comment
Assignees
Labels
project This issue has a sample project attached runner-bug In-game bugs with the "GameMaker Studio 2" runtimes

Comments

@shichen85
Copy link

Description

The sample event has a step event that should always make show the keyboard:

if !keyboard_virtual_status(){
	keyboard_virtual_show(kbv_type_ascii, kbv_returnkey_default, kbv_autocapitalize_none, false);
}

However, when tabbing out of the app and resume, virtual keyboard would be hidden, but keyboard_virtual_status() would return true and not call keyboard_virtual_show().

Steps To Reproduce

  1. Run the sample for Android VM
  2. See that the keyboard is shown
  3. Tab out of the app (or use the keyboard's setting button to enter the Android Keyboard Settings UI) and then resume
  4. See that the keyboard is hidden
  5. Tap anywhere on the screen to trigger the Global Tap event to call keyboard_virtual_show() again, and the keyboard shows

Which version of GameMaker are you reporting this issue for?

IDE v2024.1100.0.651 Runtime v2024.1100.0.677

Which operating system(s) are you seeing the problem on?

Windows 10.0.22000.0

Which platform(s) are you seeing the problem on?

Android

20a322c5-6d82-49ee-8cee-f0a593bf54b5

@gm-bug-reporter gm-bug-reporter bot added runner-bug In-game bugs with the "GameMaker Studio 2" runtimes project This issue has a sample project attached labels Oct 25, 2024
@jackerley jackerley moved this from Triage to Backlog in Team Workload Oct 25, 2024
@YYDan YYDan changed the title In-Game: [Android] keyboard_virtual_status() returns true even if the keyboard is hidden In-Game: [Android] keyboard_virtual_status() returns "true" even if the keyboard is hidden Oct 25, 2024
@imanbeik
Copy link

imanbeik commented Dec 4, 2024

I solved this issues for myself by coding a new function that cheks both status and height, if the status is true but keyboard height returns a number less than 50 for example, it would return false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project This issue has a sample project attached runner-bug In-game bugs with the "GameMaker Studio 2" runtimes
Projects
Status: Backlog
Development

No branches or pull requests

3 participants