Fix can't call GetInputMethodContext api issue