Is the text box consuming the tab? That is, is a tab character being entered into the text box? Perhaps it would be helpful if you told us the type of text box you are dealing with: Text Field, Numeric Text Field, Text Area, etc?
Under the INPUT tab in designer. The NUMERIC TEXT FIELD is what I am using. As I mentioned I NUMERIC TEXT FIELDS, DROP DOWNS and a TABLE on a screen.
In the following sentences TAB is the TAB key on the keyboard and CLICK is using the mouse pointer. The NUMERIC TEXT FIELD boxes will be called T1, T2, and T3.
Place mouse pointer in T1, CLICK, Now T1 has focus. TAB to T2, now T2 has focus. Type in a value. From this point you have two options, either CLICK to another field to give it focus or TAB to another field to give it focus.
SO now to reiterate the issue:
If in T1 and I TAB to t2, enter a value, I can either CLICK or TAB to another area, removing focus from T2 and the FOCUS LOST function seems to work fine. As I mentioned I have a little script in the FOCUS LOST of T2 that simply refreshes a table.
Now if I CLICK inside of T2 giving it focus, I can then enter a value and then CLICK on T3 give it focus and the FOCUS LOST function works.
Now if I CLICK inside of T2, again giving it focus, then TAB out of T2, the FOCUS LOST does not function.
Hope this clears things up. Have a great day and a nice weekend.
I opened the console. It did not matter which way I entered and exited the NUMERIC TEXT BOX, the print command always printed to console. So that seems to say the focus lost event is firing, so if it is firing then how come it does not do the refresh when I click into the box and tab out of it, but it does it every time I use one of the other methods?
[quote=“Carl.Gould”]Yes, it is now clear what you are talking about.
I mocked this up here and cannot reproduce it. Perhaps the issue has nothing to do with the focus lost event being fired or not, but what you’re doing in the focus lost event. Try putting:
print event.source.name, "Focus Lost"
in your focus lost events and watching the console to convince yourself that the events are occuring.[/quote]
Ok this topic can be closed. I found the problem. I was rereading your responces and it trigger an idea. Here there was a defer check box checked and it was counter acting the numeric entry. Once I removed the check mark now it works fine in all aspects.