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

[Windows] Soft keyboard doesn't show when click to text input in HTMLLoader #267

Closed
itlancer opened this issue Mar 13, 2020 · 1 comment
Closed

Comments

@itlancer
Copy link

Problem Description

Soft keyboard doesn't show when you click to text input in HTMLLoader with Windows touch screen devices.

It has been tested with multiple AIR versions even with latests AIR 32.0.0.89, AIR 33.0.2.338 and AIR 33.1.1.63 with many Windows 8.1/10 devices with touch screens. With Windows 10 it doesn't matter if you use tablet mode or not.
It doesn't matter if you use URL link or HTML code provided by String.
Same issue in all cases.
The same works fine with system browsers with the same devices and with StageWebView and enabled Windows 10 tablet mode.
Also soft keyboard appears with Windows 10 devices in tablet mode when you click to AS3 TextField with TextField::type=TextFieldType.INPUT.

There are still many cases when we cannot use StageWebView because of some limitations and issues with it on Windows platform so we have to use HTMLLoader.
Such related issues:
#174
#143
#223
#214
#183
#172

Steps to Reproduce

Launch code below with Windows 10 touch screen device with enabled tablet mode (https://support.microsoft.com/en-us/help/17210/windows-10-use-your-pc-like-a-tablet) and click to HTML text input field inside HTMLLoader via touch screen.

Application example with sources attached.
htmlloader_softkeyboard_bug.zip

package {
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.html.HTMLLoader;
	
	public class HTMLLoaderSoftKeyboardBug extends Sprite {
		private var htmlLoader:HTMLLoader;
		
		public function HTMLLoaderSoftKeyboardBug() {
			htmlLoader = new HTMLLoader();
			htmlLoader.width = 640;
			htmlLoader.height = 480;
			addChild(htmlLoader);
			
			var htmlCode:String = '<!DOCTYPE html>'
						+ '<html>'
						+ '<body>'
						+ '<input type="text" size="40">'
						+ '</body>'
						+ '</html>';
			htmlLoader.loadString(htmlCode);
		}
	}
}

Actual Result:
Focus goes to text input field but no soft keyboard will be shown.

Expected Result:
Focus goes to text input field and soft keyboard will be shown with layout according text input type (text, numeric, phone etc).

Known Workarounds

@itlancer
Copy link
Author

itlancer commented May 2, 2022

With latest AIR versions HTMLLoader now deprecated and removed so this issue not actual any more.
But new options to control soft keyboard behavior for Windows still welcome.

@itlancer itlancer closed this as completed May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant