Mar
Mar

Reputation: 323

Actionscript Event KeyboardEvent.KEY_UP not working as expected on iOS / iPad

I am using KeyboardEvent.KEY_UP to trigger a function for each key stroke.

On Windows/Mac/Android each key up triggers the function.

However on iOS, the key up only triggers once the native blue Done button is clicked.

Does a way exist to trigger a function on each click?

I tried KEY_DOWN but it behaves the same.

Upvotes: 1

Views: 55

Answers (1)

Philarmon
Philarmon

Reputation: 1806

I assume you don't want to catch each key press (for example, a keypress on a "Shift" wouldn't change much) but catch the text changes. In this case you could add this to your input textfield:

_myInputText.addEventListener(TextOperationEvent.CHANGE, onInputChanged);

Upvotes: 4

Related Questions