I found the setting that causes this behaviour to happen. It happens if grp:shifts_toggle is used in /etc/X11/xorg.conf to switch between keymaps (at least when using en,il keymaps option). When using a different groups switching method behaviour is fine.
-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]