In my Ubuntu 15.10 I set Caps Lock to switch keyboard layouts in System Settings > Keyboard > Shortcuts > Typing > Switch to next source.
But every time I press Caps Lock it still capitalize keyboard for a split second (and Caps Lock LED blinks), then it back to non-capitalized keyboard and finally switch layout. But if I press any key after pressing Caps Lock and before layout switching, the layout doesn't switches at all, and moreover my keyboard remain capitalized.
I very often switch keyboard between English and my native language, and typing very fast, so almost every third switching I capitalize keyboard instead of switching layout. It's very big trouble for me. Hot to fix it?
Update (18 Sep 2016): The bug is still exists in 16.04.