I'm on ubuntu 15.10 and I have two keyboard layouts: Persian and English(UK).
When I try to switch between these two if I keep holding the shift (I use R ALT + R Shift shortcut to switch ) it will still write in the layout I was on while it wasn't like this on Windows and once I pressed R Alt + R Shift it would change the layout.
With holding shift after pressing shortcut ->
Leaving shift after pressing shortcut and then starting to type:
Believe me it's so annoying and I think it can be resolved but donno how!