Clearing the state here introduces a bit of weird behavior. For instance. typing `k`, pressing `^a`, clicking to the right of `k`, and typing `o` will produce `kお instead of `こ`. 

But not clearing the state would produce _weirder_ behavior. For instance, typing `k`, pasting in some text, and then typing `o` would replace the last character of the pasted text with  `こ`. (See also issue #16.)