# Karabiner-Elements Mac 版：重新映射按键并自定义键盘规则

_As of 2026-11-28_

- **Version:** 17.0.0
- **macOS min:** 13
- **License:** Free

Karabiner-Elements 是一款免费开源的 macOS 键盘定制工具。它可以改变每个按键的作用，从简单地对调两个键，到根据应用、键盘或按键是否单独按下而生效的规则。

macOS lets you swap a few modifier keys and little more. Karabiner-Elements places its own virtual keyboard between your keyboard and the system, so it can change almost any key before apps see it.
What it does well

Simple modifications. Change one key to another in the settings window, for every keyboard or only one.
Complex modifications. Rules with conditions: a modifier plus a key becomes another key, a key sends something else when pressed alone, or a change applies only in certain apps.
Community rules. Import predefined rules such as Vi or Emacs key bindings or mouse keys, then adjust them.
Profiles and function keys. Keep several profiles, and choose which of F1–F12 act as media controls.

Who it is for
People with a PC keyboard, programmers who want Vi or Emacs keys everywhere, and anyone who needs a key to do something macOS does not offer.
Good to know
Setup takes several steps, and your own rules are written in JSON, which takes some learning. It cannot change the fn key on non-Apple keyboards. If you only want a Hyper key on Caps Lock, Hyperkey is a smaller app for that.
How to install

On the download page, choose the release for your version of macOS.
Open the downloaded disk image, then open the installer package inside it and follow its steps.
Open Karabiner-Elements; its settings window lists what to allow in System Settings, including Accessibility and a driver extension.
Choose your keyboard type when asked.

> Source: https://macsoftpark.net/zh/karabiner-elements/
