岄无涯 2021-08-09 19:20 采纳率: 0%
浏览 18
已结题

使用karabiner-element修改mac键位

想要在微信中使用esc键替换cmd+w,这么设置不成功,不知道哪里改的有问题。
bundle_identifiers替换为^com\.tencent\.xinWeChat$也不行。


{
    "global": {
        "check_for_updates_on_startup": true,
        "show_in_menu_bar": true,
        "show_profile_name_in_menu_bar": false
    },
    "profiles": [
        {
            "complex_modifications": {
                "parameters": {
                    "basic.simultaneous_threshold_milliseconds": 50,
                    "basic.to_delayed_action_delay_milliseconds": 500,
                    "basic.to_if_alone_timeout_milliseconds": 1000,
                    "basic.to_if_held_down_threshold_milliseconds": 500,
                    "mouse_motion_to_scroll.speed": 100
                },
                "rules": [
                    {
                        "description": "cmd+w => esc",
                        "manipulators": {
                            "description": "esc->command+w",
                            "manipulators": [
                                {
                                    "conditions": [
                                        {
                                            "bundle_identifiers": [
                                                "com.tencent.xinWeChat"
                                            ],
                                            "type": "frontmost_application_if"
                                        }
                                    ],
                                    "from": {
                                        "key_code": "escape"
                                    },
                                    "to": [
                                        {
                                            "key_code": "w",
                                            "modifiers": [
                                                "left_command"
                                            ]
                                        }
                                    ],
                                    "type": "basic"
                                }
                            ]
                        }
                    }
                ]
            },
            "devices": [],
            "name": "Default profile",
            "parameters": {
                "delay_milliseconds_before_open_device": 1000
            },
            "selected": true,
            "simple_modifications": [],
            "virtual_hid_keyboard": {
                "country_code": 0,
                "indicate_sticky_modifier_keys_state": true,
                "mouse_key_xy_scale": 100
            }
        }
    ]
}
  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 系统已结题 8月17日
    • 创建了问题 8月9日

    悬赏问题

    • ¥15 asp.core 权限控制怎么做,需要控制到每个方法
    • ¥20 while循环中OLED显示中断中的数据不正确
    • ¥15 这个视频里的stm32f4代码是怎么写的
    • ¥15 JNA调用DLL报堆栈溢出错误(0xC00000FD)
    • ¥15 请教SGeMs软件的使用
    • ¥15 自己用vb.net编写了一个dll文件,如何只给授权的用户使用这个dll文件进行打包编译,未授权用户不能进行打包编译操作?
    • ¥50 深度学习运行代码直接中断
    • ¥20 需要完整的共散射点成像代码
    • ¥15 编写vba代码实现数据录入工作
    • ¥15 做过TCL海信电视小米电视相关影视会员软件私我