Hi,
I looked around but I didn't find any event sent by the TextField whe the keyboard cursor enters or leaves the field ?
Printable View
Hi,
I looked around but I didn't find any event sent by the TextField whe the keyboard cursor enters or leaves the field ?
What exactly are you trying to do here, your post is quite vague. Could you be more specific? Then I may be able to help.
Sorry for the delay and for being too vague.
Actually I would like to know if the cursor/carret is inside an input text field.
For example, let's say, the application listens to the spacebar event, and has to start a specific action when the use press the space bar. I would like to disable this action if the user is currently entering a text in an input text field.
I've found out that I haev to use the focus mnager to know if the cursor is in the text field.
PHP Code:if (stage.focus != myInputBox) then doMyAction();
I know you said you had a solution butQuote:
Originally Posted by Sietjp
there are 4 available focus events:Code:someTextField.addEventListener(FocusEvent.FOCUS_OUT, focusOutEvent);
FOCUS_IN
FOCUS_OUT
KEY_FOCUS_CHANGE
MOUSE_FOCUS_CHANGE
Thanks (late)