解决 macOS Sierra中F11映射成end之后无法调低音量的问题

mac电脑升级为macOS Sierra 就无法使用seil了,使用的是Karabiner-Elements

macOS Sierra 中可以使用Karabiner-Elements 进行按键映射:

我的目的是单独按下F11,就相当于按下end.

但是fn+F11 ,就无法减少音量了,很奇怪.

所以采用脚本的方法实现:

{
      "description": "Post end when F11 is pressed alone.post home when is held util 1 second",
      "manipulators": [
        {
          "from": {
            "key_code": "f11",
            "modifiers": {
            }
          },
          "to": [
            {
            }
          ],
          "to_if_held_down": [
            {
              "key_code": "home"
            }
          ],
          "parameters": {
            "basic.to_delayed_action_delay_milliseconds": 2500,
            "basic.to_if_held_down_threshold_milliseconds": 1000
          },
          "to_if_alone": [
            {
              "key_code": "end"
            }
          ],
          "type": "basic"
        }
      ]
    }

上述脚本的功能:

1,单独按下F11,相当于end;

2,单独按下F11,不松开,触发home;

多长时间算作不松开,由to_if_held_down_threshold_milliseconds 指定;

扫描二维码关注公众号,回复: 197453 查看本文章

3,不影响fn+F11,依然可以减少音量

详解:

 

参考:

https://my.oschina.net/huangweiindex/blog/1649219

https://my.oschina.net/huangweiindex/blog/1786668

http://hw1287789687.iteye.com/blog/2416034

https://pqrs.org/osx/karabiner/complex_modifications/#personal-settings

 https://my.oschina.net/huangweiindex/blog/1801521

附录:我的Karabiner-Elements 配置

本地配置文件:
/Users/whuanghkl/.config/karabiner/assets/complex_modifications

mac 快捷键

配置文件见附件

猜你喜欢

转载自hw1287789687.iteye.com/blog/2420443