HTML5Window: add lime_enable_html5_ime define (references openfl/openfl#2564)
This commit is contained in:
@@ -1115,8 +1115,12 @@ class HTML5Window
|
|||||||
if (textInput == null)
|
if (textInput == null)
|
||||||
{
|
{
|
||||||
textInput = cast Browser.document.createElement('input');
|
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
|
// use password instead of text to avoid IME issues on Android
|
||||||
textInput.type = 'password';
|
textInput.type = 'password';
|
||||||
|
#end
|
||||||
textInput.style.position = 'absolute';
|
textInput.style.position = 'absolute';
|
||||||
textInput.style.opacity = "0";
|
textInput.style.opacity = "0";
|
||||||
textInput.style.color = "transparent";
|
textInput.style.color = "transparent";
|
||||||
|
|||||||
Reference in New Issue
Block a user