Bug 840031 - Use IsTextControl() in nsEventStateManager.cpp. r=smaug