The origin is the `checkDefaults` function in `keyboard_helper.js`, which is the only place we know the deselected type. We could pass the deselected type as the second parameter to the callback function, and all the way back to this function (by adding the parameter to `notifyDefaultEnabled` and `showdialog` in keyboard.js).