MacOS 如何映射快捷键

MacOS 如何映射快捷键

背景

参考文档

macOS Sequoia 现在要求热键注册至少使用一个非 shift 或 option 的修饰符,对于原来使用快捷键 option + * 的功能无法使用。通过软件 karabiner-element.app 做键盘映射,可以实现原有功能继续使用。

步骤说明

  1. 安装软件 karabiner-element.app
  2. 修改待使用功能的快捷键 option + * 为快捷键 option + command + *
  3. 在软件 karabiner-element.app 做对应的映射

映射示例

i. 打开软件,添加映射

ii. 输入规则示例,映射 option + Aoption + command + a

json 复制代码
{
    "description": "Map Left Option + A to Left Command + Left Option + A",
    "manipulators": [
        {
            "from": {
                "key_code": "a",
                "modifiers": { "mandatory": ["left_alt"] }
            },
            "to": [
                {
                    "key_code": "a",
                    "modifiers": ["left_command", "left_option"],
                    "repeat": true
                }
            ],
            "type": "basic"
        }
    ]
}

iii. 测试

相关推荐
hanjq_code19 小时前
Mac电脑ROG键盘蓝牙模式下 Caps Lock 键无法切换语言的解决办法
mac
踏着七彩祥云的小丑1 天前
Mac——已安装工具查找
macos
小红的布丁1 天前
公网 IP、私网 IP、路由表、转发表与 MAC 地址的关系
tcp/ip·macos·智能路由器
枫叶落雨2221 天前
策略模式实战
策略模式
Lecxcy_Kastreain1 天前
如何自适应 MacOS
macos
简单点了1 天前
mac安装node环境
macos
简单点了1 天前
mac安装vm装win11虚拟机
macos
todoitbo1 天前
装了 QClaw 之后,我卸掉了好几个 Mac 软件
人工智能·macos·ai·软件·openclaw·qclaw
總鑽風1 天前
搭建Spring Boot + ELK日志平台,实现可视化日志监控
spring boot·elk·macos
CS创新实验室2 天前
《计算机网络》深入学:IP地址 VS. MAC地址
tcp/ip·计算机网络·macos