Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12790] Android: Textfield unfocused automatically

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionWon't Fix
Resolution Date2013-04-09T22:50:33.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 08
ComponentsAndroid
Labelsandroid, exalture, regression
ReporterCésar Cavazos
AssigneeHieu Pham
Created2013-02-19T23:40:31.000+0000
Updated2017-03-23T22:39:51.000+0000

Description

Bug

Tapping "Next" on soft keyboard to go to the next textfield dismisses the keyboard automatically. However this behavior is not present on 3.0.0.GA This issue is also present if you select any other textfield that is not focused.

Test case

app.js
var win = Ti.UI.createWindow({
	height: Ti.UI.FILL,
	width: Ti.UI.FILL,
	backgroundColor: "#FFF",
	exitOnClose: true,
	fullscreen: false,
});

var wrapper = Ti.UI.createView({
	width: '100%',
	height: '100%',
	backgroundColor: '#CCC',
})

var textField1 = Ti.UI.createTextField({
	width: 200,
	height: Ti.UI.SIZE,
	top: 100,
});

var textField2 = Ti.UI.createTextField({
	width: 200,
	height: Ti.UI.SIZE,
	top: 150,
});

wrapper.add(textField1);
wrapper.add(textField2);
win.add(wrapper);
win.open();

Comments

  1. César Cavazos 2013-02-19

    Current workaround is to add the property softKeyboardOnFocus = Ti.UI.Android.SOFT_KEYBOARD_SHOW_ON_FOCUS to the textfield.
  2. Olga Romero 2013-03-13

    Reproducible with: Titanium Studio, build: 3.0.3.201302201202 Titanium SDK, build: 3.1.0.v20130312161655 Device: Nexus7 Android version: 4.2
  3. Anshu Mittal 2013-04-04

    Reproducible with: Tested with: SDK: 3.1.0.v20130403114957 Studio:3.1.0.201304011603 Device: LG-p970(v 2.2.2)
  4. Hieu Pham 2013-04-09

    This is a behavior change caused by TIMOB-6367. A possible workaround is as suggested, set softKeyboardOnFocus to Ti.UI.Android.SOFT_KEYBOARD_SHOW_ON_FOCUS. Closing as won't fix.
  5. Lee Morris 2017-03-23

    Closing ticket as Won't Fix with reference to the above comments.

JSON Source