On second thought, what I'd like to see is changing keyboard_layouts.js so that it has nothing to do with keyboard groups. When the langugage changes, we change keyboard.current, but we never modify the keyboard.layouts.* properties. Let the user do that in the settings app.

Will that work if we just ignore keyboard groups here completely?