Using multiple keyboard layouts can overide layout change key after rebooting
I have 3 keyboard layouts set up, Japanese (which matches the physical layout), Japanese (ibus-anthy for kanji input) and Spanish (latin) keyboard which I have to use sometimes. I have set up the keyboard layout change key to a unique key in Japanese keyboard called "zenkaku-hankaku". This is the key which is set up in windows and I have used it for all previous Ubuntu versions without problem.
I started noticing that I lost the functionality of the keyboard layout change key some but not all of the time. After trying to replicate the bug I found out what the problem is. It can also be replicating by using the same keyboard layouts I mentioned before.
My default keyboard layout is Japanese, so after setting up the keyboard layout change key to "zenkaku-hankaku" key , I add two more layouts. If I end my session (shut down or reboot) the computer with Japanese keyboard layout there is no problem. However if I end my session (shut down or reboot) with the Spanish keyboard layout, then I am unable to change keyboard layouts on the next session. This is because Spanish keyboard layout does not have "zenkaku-hankaku" key. If I check the setting they are working well. However if I test "zenkaku-hankaku" key, instead of changing the keyboard layout it prints the ' tilde (?) character. So the way I understand the keyboard layout is not returning to the default keyboard layout.
I have not seen this behavior before 14.04 trusty.
Using Ubuntu Trusty: 14.04; clean install.
Launchpad Details: #LP1320625 Alejandro - 2014-05-18 12:34:22 +0000