HTML5Window: add lime_enable_html5_ime define (references openfl/openfl#2564)

This commit is contained in:
Josh Tynjala
2023-01-11 16:00:57 -08:00
parent e03cc18d31
commit d75b9f9cfa

View File

@@ -1115,8 +1115,12 @@ class HTML5Window
if (textInput == null)
{
textInput = cast Browser.document.createElement('input');
#if lime_enable_html5_ime
textInput.type = 'text';
#else
// use password instead of text to avoid IME issues on Android
textInput.type = 'password';
#end
textInput.style.position = 'absolute';
textInput.style.opacity = "0";
textInput.style.color = "transparent";