I guess this means

``` js
if (the same input method) {
   if (inputMethod.setLanguage)
      inputMethod.setLanguage();
} else {

   // no need to handle, per the above comment.
   // or should we cache the state that we got from a focuschange event?
}
```