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.
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.
Closing ticket it as it is marked as won't do.