Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26178] Windows: TextField/TextArea should not receive focus by default when a window is opened

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionWon't Do
Resolution Date2019-06-12T02:13:56.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsWindows
LabelsTextArea, TextField, focus, parity
ReporterPankaj Goyal
AssigneeKota Iguchi
Created2018-07-03T00:08:33.000+0000
Updated2019-06-25T11:55:51.000+0000

Description

Behavior

TextField should not receive focus right after Windows is opened to match iOS's behavior.

Test case

var window = Ti.UI.createWindow();
var textField = Ti.UI.createTextField({
	value: "Focus Test",
	width: Ti.UI.FILL,
	height: Ti.UI.SIZE,
});
textField.addEventListener("focus", function(e) {
	Ti.API.info("@@@ TextField 'focus' event received. bubbles: " + e.bubbles);
});
textField.addEventListener("blur", function(e) {
	Ti.API.info("@@@ TextField 'blur' event received. bubbles: " + e.bubbles);
});
window.add(textField);
window.open();
Expected: No focus log should be shown after app launched and TextField should not have focus.

Comments

  1. Kota Iguchi 2019-06-12

    Closing this as "Won't Fix" because this is a platform component behavior. On Windows Store app, we can see first text area gets focus when new Window is opened and "focus" event is fired for the component then. I think we should respect this platform UI user experience otherwise platform users get confused.
  2. Samir Mohammed 2019-06-25

    Closing ticket it as it is marked as won't do.

JSON Source