I encountered this issue too but doing this it works well:
open /etc/X11/xorg.conf being root and find this section:
"
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "fr"
Option "XkbVariant" "oss"
EndSection
"
Comment the line " Option "XkbVariant" "oss" " by putting a # at the begining. Save, restart the xserver and that's all