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

Fix virtual keyboard for decimal values on Android #86619

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

Alex2782
Copy link
Contributor

Fixes: #84091

In Europe, comma (,) is usually used for decimal numbers and not period (.)

Note: without accept_characters / KeyListener the input is validated correctly, i.e. '-' is only possible at the beginning and '.' only once. The KeyListener is there to accept ','. On a Samsung Android ',' is deactivated (I could not find a solution)


Bildschirmfoto 2023-12-29 um 23 18 41

Tests (numbertest.zip from #84091 (comment))

Pixel 4a (Android 13)

pixel_Screen_recording_20231229_231927.mp4

Samsung Tab S7 (Android 13)

samsung_Screen_recording_20231229_232305.mp4

@Alex2782 Alex2782 requested a review from a team as a code owner December 29, 2023 22:35
@AThousandShips AThousandShips added this to the 4.3 milestone Dec 30, 2023
@AThousandShips AThousandShips added cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release labels Dec 30, 2023
@Alex2782
Copy link
Contributor Author

I could not find any information on how to activate ',' on the Samsung keyboard. The keyboard app is supposed to be open source, but I can't find anything on the Samsung homepage https://opensource.samsung.com/main

However, it is possible to set up the Google keyboard. Gboard App - PlayStore

Bildschirmfoto 2023-12-30 um 16 03 18

@Alex2782
Copy link
Contributor Author

Alex2782 commented Jan 1, 2024

virtual keyboard for decimal values on Samsung Android 8.1 😢

Bildschirmfoto 2024-01-01 um 19 08 50

@Alex2782 Alex2782 force-pushed the fix_flag_decimal branch 2 times, most recently from 38c41e7 to b604e22 Compare February 13, 2024 16:49
Copy link
Contributor

@m4gr3d m4gr3d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@akien-mga akien-mga merged commit 68c583d into godotengine:master Feb 13, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@Alex2782 Alex2782 deleted the fix_flag_decimal branch February 14, 2024 02:15
@akien-mga
Copy link
Member

Cherry-picked for 4.2.2.
Cherry-picked for 4.1.4.

@akien-mga akien-mga removed cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release labels Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants