Hiding button when not having the focus
I have a lay out with two global fields and a button. The first field is starting date, the second field is ending date, and the OK button provides a list.
But, if a user changes the dates, and directly pushes the OK Button, de OK Button does not have the focus, so the provided list is not correct because the last change did not take place. (The focus is still on one of the dates).
Is there a way to hide the OK Button as long as it does not have the focus? I can't find it. Or, can I force to get the focus on the button before clicking it?