Update InputMethod API behavior per bug 1054839