Fix handling of ime activation
Merge pull request #3041 from imurchie/isaac-ime

Fix handling of ime activation