Bug 885692 - Switch keyboard API patch created by janjongboom.
Expose inputcontext and oninputcontextchange to InputMethod.