pqrs-org / Karabiner-archived

Karabiner (KeyRemap4MacBook) is a powerful utility for keyboard customization.
https://pqrs.org/osx/karabiner/
The Unlicense
3.82k stars 311 forks source link

Map to "alt codes"? #869

Closed lebigot closed 6 years ago

lebigot commented 6 years ago

Some alt code Windows sequences are useful for proper typography, like the long dash (— = alt-0151) and the ellipsis (… = alt-0133).

Can Karabiner map to such sequences? I can't find any example either in the documentation or on the web.

lebigot commented 6 years ago

Solved (in Karabiner Elements): this can be done by providing a list of left_option + Keypad_0, etc. keys in the "to" part of the Karabiner configuration file.

asmeurer commented 6 years ago

On Mac the common characters are provided by Option-letter, like Option-Shift-- (Option-Shift-DASH) for — and Option-; for …