Added mechanism to allow apps to have more control over virtual keyboard hiding.