I want my InputMethodService
to switch to capitals when the cursor is positioned after a period ('.'
) and spaces. The trick is to get notified when the cursor is re-positioned. The cursor may get positioned after a period when either:
- user inputs period, or
- user touches the screen, or
- user pastes some text.
Question: how do I get the InputMethodService
notified of selection changes and text pasting?