4

I'm using Magic Keyboard 2 with numeric keypad. The problem I have is that when I use English US as input source, the dot on the numpad results in " . "

Where I'd need it to type a comma (as in, e.g., German language). I need comma, because I live in Europe, and the number separator for decimals is "," and not a ".". And all calculations are made with comma.

Numpad

Anton K
  • 897

3 Answers3

6

I know it is an old question, but for those like me who changed decimals to comma just to find out it did nothing, you can use this approach.

hidutil property --set '{"UserKeyMapping": [{"HIDKeyboardModifierMappingSrc": 0x700000063, "HIDKeyboardModifierMappingDst": 0x700000036}]}'

https://developer.apple.com/library/archive/technotes/tn2450/_index.html

It replaces the , from the keypad to . It can be reverted changing the values 0x7... but anyway, IMO comma should be the key by default, as it is the most common decimal separator. https://en.wikipedia.org/wiki/Decimal_separator#/media/File:DecimalSeparator.svg

mmmmmm
  • 30,160
Indoctum
  • 131
  • 1
  • 6
  • Does this approach still work? I can't get this to work with Ventura. The hidutil command, when run like above, outputs some mappings, but the numeric keypad is unchanged. – nwinkler Jan 09 '23 at 10:19
  • 1
    For me (German keyboard), I had map from 0x7...63 to 0x7...37to show a dot when I press the numeric keypad dot/comma key. – nwinkler Jan 13 '23 at 17:25
3

System Preferences- Language and Region- at the bottom of the box click "Advanced"- then choose the dot/ comma under Number separators- Decimal and again under drop down box "decimal" under currency.

JanD
  • 115
-1

You can get a custom layout with comma instead of dot on that key here.

Tom Gewecke
  • 20,864