Merge "Fix a bug on the focus of the input method switching dialog"