Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17017] Android: WebView will show keyboard momentarily on start

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-05-23T19:02:18.000+0000
Affected Version/sRelease 3.2.3
Fix Version/s2014 Sprint 10, 2014 Sprint 10 SDK, Release 3.3.0, Release 3.4.0
ComponentsAndroid
Labelsandroid, module_webview, qe-testadded, regression
ReporterMichael Gangolf
AssigneeVishal Duggal
Created2014-05-19T10:16:14.000+0000
Updated2014-05-23T21:23:59.000+0000

Description

In 3.2.3 the following code will open a webview and the keyboard on android: XML
<Alloy>
	<Window class="container">
		<WebView id="webview"></WebView>
	</Window>
</Alloy>
TSS:
"#webview":{
	enableZoomControls: false,
	left: 0,
	right: 0,
	bottom: 0,
	top: 0,
	userAgent: "MobileApp",
	scalesPageToFit: true
}
JS:
$.webview.url = url;
will automatically open the keyboard on Android with 3.2.3. Switching back to 3.2.2 won't show the keyboard like it should be.

Comments

  1. Ritu Agrawal 2014-05-19

    I was able to see the keyboard popup for just a moment before the url got opened.
       var webview = Titanium.UI.createWebView({url:'http://www.appcelerator.com'});
           var window = Titanium.UI.createWindow();
           window.add(webview);
           window.open({modal:true});
       
  2. Ritu Agrawal 2014-05-22

    Moving this ticket to engineering as I can reproduce this issue with a very simple test case. Same test works fine on the same device with 3.2.2 release so it is a regression.
  3. Vishal Duggal 2014-05-22

    Pull pending master - https://github.com/appcelerator/titanium_mobile/pull/5725 3_3_X - https://github.com/appcelerator/titanium_mobile/pull/5726
  4. Lokesh Choudhary 2014-05-23

    Verified the fix. The keyboard does not popup when a webview is launched. Closing. Environment: Appc Studio : 3.3.0.201405211748 Ti SDK : 3.3.0.v20140523120121 Mac OSX : 10.8.5 Alloy : 1.4.0-alpha4 CLI - 3.3.0-alpha5 Code Processor: 1.1.1 Samsung Galaxy S4 running android 4.2.2

JSON Source