# requestFocusInWindow not working in mobile project

**URL:** <https://forum.inductiveautomation.com/t/requestfocusinwindow-not-working-in-mobile-project/7878>\
**Category:** Ignition\
**Created:** [January 20, 2014, 11:11pm UTC](https://forum.inductiveautomation.com/t/requestfocusinwindow-not-working-in-mobile-project/7878 "2014-01-20T23:11:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [January 20, 2014, 11:11pm UTC](https://forum.inductiveautomation.com/t/requestfocusinwindow-not-working-in-mobile-project/7878/1 "2014-01-20T23:11:51Z")

</div>

I am having trouble getting a text box component to receive focus in a mobile project. I am running 7.6.4 java 7 update 25. If I run the project as a regular client on a PC the focus moves from one box to the other when a “|” is typed. The mobile project does not work in either a web browser on my PC or the android tablet i am using.

I have the following code on the propertyChange event of a text box with update deferred off and reject updates during edit turned off.

`if(event.propertyName == "text" and event.newValue.endswith("|")):
	event.source.parent.getComponent('txtPassword').requestFocusInWindow()`

I see there is a post that sounds like this was fixed, but there is now details on how they are implementing the focus change.

[http://www.inductiveautomation.com/forum/viewtopic.php?f=70&t=10001&p=39934&hilit=mobile+focus#p39934](http://www.inductiveautomation.com/forum/viewtopic.php?f=70&t=10001&p=39934&hilit=mobile+focus#p39934)

Thank you,

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [May 5, 2014, 10:18pm UTC](https://forum.inductiveautomation.com/t/requestfocusinwindow-not-working-in-mobile-project/7878/2 "2014-05-05T22:18:49Z")

</div>

Jonathan,

Sorry for the long overdue response to your topic. I have been testing this here without any success. I can confirm the keyCode and keyChar events are working the way they should. Still not having any luck with the requestFocusInField(). I will create a ticket here to have it looked at.

---

<div class="post-metadata">

**Author:** ![sebastian](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@sebastian](https://forum.inductiveautomation.com/u/sebastian)\
**Post date:** [May 30, 2014, 5:14pm UTC](https://forum.inductiveautomation.com/t/requestfocusinwindow-not-working-in-mobile-project/7878/3 "2014-05-30T17:14:13Z")

</div>

Hi, I have the same problem. RequestFocusInWindow doesn’t work in mobile. Is there any solution on this one?

Thanks

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [May 30, 2014, 5:24pm UTC](https://forum.inductiveautomation.com/t/requestfocusinwindow-not-working-in-mobile-project/7878/4 "2014-05-30T17:24:50Z")

</div>

This is still an open ticket for us here. This forum thread will be updated once the issue has been fixed.
