Fixing the keyboard layout

Hi,

I use a French Macintosh keyboard and I had some missing third and fourth level keys.
I thought that it was a problem with the layout wrongly defined, so I was going to write a new one.

I copied /usr/share/X11/xkb/symbols/macintosh_vndr/fr to /usr/share/X11/xkb/symbols/fr_custom and changed

name[Group1]= "France - Mac";

to

name[Group1]= "France - Mac (custom)";

Then added into /usr/share/X11/xkb/rules/evdev.xml, the following:

<layout>
  <configItem>
    <name>fr_custom</name>
    <shortDescription>fr</shortDescription>
    <description>French (Macintosh custom)</description>
    <languageList>
      <iso639Id>fra</iso639Id>
    </languageList>
  </configItem>
</layout>

Next, I restarted Wayland:

systemctl restart gdm.service

Finally I opened the Settings and selected the new keyboard.
I was expecting to get exactly the same and was about to start making some modifications to the layout, but at my surprise everything was fixed: all missing third and fourth level keys are now working.

So my problem is gone, but it’s clearly not a clean fix. Have you any idea of what’s going on?

By the way, I’m a new user to Manjaro and to Linux as a Desktop OS in general. I don’t fully understand what I modified and just followed some instructions found on the internet.

Thanks