views:

5

answers:

0

I'm sorry for the bad title. I'm tired and I just can't seem to find a good description.

Here is my problem:

HTC has a virtual keyboard where you can select between the following keyboard types:

  • QWERTY
  • Phone Keypad
  • Compact qwerty

If you choose anything other than QWERTY you will have to multi tap on the buttons to get the letter of your choice. If you input some letters quickly without pausing too long between them they will get a grey background. It looks like a selection, but grey instead of blue.

EditText contents: Old text and a new set of words written rapidly

(it actually looks very similar to the above)

The grey selection goes away once you have waited a short while (approximately 2 seconds)

EditText contents: Old text and a new set of words written rapidly

On the htc desire you get word completion while the text has a grey selection, and here lies my problem: I don't want to care about onTextChanged-events until the grey selection has disappeared. A really (really!) ugly way of doing this would be to have my own timer set for let's say 3 seconds every time I get a onTextChanged event. What I would like is a callback telling me that "hey, the user has finished his word selection now". Or "hey, the user has finished his multitapping on the 1 button, he chose 'c'".

Any suggestions, even rtfm ones, are most welcome!