Skip to content

[html5] Android System WebView and lime bug with keyboard! #1941

@Mintonist

Description

@Mintonist

More info here - https://community.openfl.org/t/html5-android-system-webview-and-lime-bug-with-keyboard/14090/9

Hi!

It is continuation of the Android softkeyboard is not appear in my OpenFL/Starling app (html5) 1

I notice that in some cases (not always!) my OpenFL app has a bug in Android System WebView. When I touch to TextField - android keyboard does not appear. In mobile browser there is no such problem. Only in Android System WebView. But it used by many other apps (social networks, messengers, game aggregators, etc) and it is matter for me!

I test it with different versions of Android System WebView (including Dev) - same result.
I find that all stuff about it is in \HaxeToolkit\haxe\lib\lime\8,2,2\src\lime_internal\backend\html5\HTML5Window.hx

I try to modify HTML5Window.hx but no result.
It is simple to reproduce. Just create TextField in main class:

var input = new TextField();
input.type = TextFieldType.INPUT;
input.border = true;
input.text = "";

var format = new TextFormat();
format.size = 24;
format.font = "Sans";
format.color = 0x101010;
input.defaultTextFormat = format;
input.needsSoftKeyboard = true;

input.x = 10;
input.y = 10;
input.width = 200;
input.height = 30;

stage.addChild(input);
You can see simple project source in zip
Click this live demo 1 and check it in Android Web View (copy and open link in Telegram for example).

I have tested other html5 game (not OpenFL) and notice that they create TextArea on full screen width inside div (not TextInput):

Image

May be I don’t understand something or may be it is critical lime bug! Help)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions