ysoftwareab / xkb-for-macos

PC keyboard layouts for MacOS straight from X11 xkb
The Unlicense
23 stars 5 forks source link

No numpad with an USB PC keyboard #5

Open nicolas-albert opened 1 year ago

nicolas-albert commented 1 year ago

What does the enhancement look like, and what's its purpose?

In desktop configuration, I use my MacBook with a USB PC keyboard (fr-azerty). I was used to set my keyboard with OSS on Linux or Windows, so I found this project. I have tested:

I never got the numpad working.

I suggest to add numpad to all layouts.

What alternatives are there?

For now, I use the standard OSX FR-PC keyboard layout that handle the numpad.

Add anything else that is related and can be relevant. Go wild!

I someone know what should be added to the XML of .keylayout file, let me know ;)

nicolas-albert commented 1 year ago

I added this:

      <key code="89" output="7" />
      <key code="91" output="8" />
      <key code="92" output="9" />
      <key code="86" output="4" />
      <key code="87" output="5" />
      <key code="88" output="6" />
      <key code="83" output="1" />
      <key code="84" output="2" />
      <key code="85" output="3" />
      <key code="82" output="0" />
      <key code="65" output="." />

Inside the <keyMap index="0"> and it's good.