How might I detect when an InputField
comes into focus?
For example ideally something like this would work.
EventHandler[
InputField["default", String], {
"FocusGained" :> (MessageDialog["Focus"]),
"FocusLost" :> (MessageDialog["unFocus"]),
"Focus" :> (MessageDialog["Focus"])
}
]
After reading this question I assumed "FocusGained,FocusLost or Focus" would do something but I haven't had any luck just yet.
ControllerState["Button 1"]
to trigger "unfocus", using "MouseEntered" and "MouseExited" to determine if the click was inside our outside the input box. $\endgroup$ – C. E. Aug 25 '13 at 17:57EventHandler
but events in GUIKit. $\endgroup$ – Michael E2 Aug 26 '13 at 0:33