Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9720] Android: Textfield:Soft keyboard is not displayed after focus event fired,one more click is needed for its display.

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2018-06-29T20:45:49.000+0000
Affected Version/sRelease 2.1.0, Release 3.1.0
Fix Version/sn/a
ComponentsAndroid
Labelsapi, qe-and060112
ReporterShyam Bhadauria
AssigneeUnknown
Created2012-06-22T02:26:17.000+0000
Updated2018-06-29T20:45:49.000+0000

Description

This is not a regression. It exists as far as 1.8.2 Steps to reproduce: 1) Use the below code:
var win = Ti.UI.createWindow();
win.backgroundColor= 'red';

		var tf = Titanium.UI.createTextField({
				backgroundColor: "#fff",
				width : 250,
				height : 80,
				focusable : true,
			});
		win.add(tf);
			
		tf.addEventListener('focus', function() {
				alert('Focus fired');
			});
win.open();	
It creates a textfield on window with its focusable property to true. 2) Run the app. Expected result: The soft keyboard should be displayed with the app running. Actual result: No soft keyboard is displayed unless user clicks on textfield.

Comments

  1. Neeraj Gupta 2012-06-22

    This is probably related to another ticket where focus event is not firing for the text field.
  2. Anshu Mittal 2012-09-17

    Tested on 2.1.2 GA and 2.1.3.v20120915120319, Galaxy note(v 2.3.6), The keyboard is popped up only when app is launched in portrait mode. If the app is launched in landscape mode, keyboard is not popped up.
  3. jithinpv 2013-02-26

    issue reproduces with sdk 3.0.2 and 3.1.0 .
  4. Joshua Quick 2018-06-29

    Cannot reproduce in Titanium 6.0.2. Assumed fixed.

JSON Source