Clearing ime_text before interpretKeyEvents makes hasMarkedText()
answer NO while a composition is active. AppKit consults it when
applying text that an input method commits during the key event,
and discards commit text arriving together with a function key.
Korean IMEs finalize the composing syllable when an arrow key is
pressed, so that syllable was lost instead of being committed.
ime_text is maintained by setMarkedText/insertText/unmarkText, so
removing the pre-clear leaves the state correct.
refs: #6907