How to set the input mode for each application in OS X

Solution 1:

Have you tried the Auto-switching in Keyboard Preferences?

This is maybe not optimal, but worths trying.

Input Sources