Bug 942309: don't switch keyboard layouts unnecessarily when switching ...

...input types