Fixes inputs not receiving focus on Chrome and FF. Fixes #711
Worked around an issue on WP where HTMLInputElement.msGetInputContext is defined but throws an exception when invoked. Fixes #686.