Applescript 在点击时将 Esc 映射到 Caps Lock;按下时控制大写锁定(macOS Sierra)? [英] Applescript to Map Esc to Caps Lock when tapped; Control to Caps Lock when pressed (macOS Sierra)?

查看:24
本文介绍了Applescript 在点击时将 Esc 映射到 Caps Lock;按下时控制大写锁定(macOS Sierra)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很清楚 karabiner-elements 仍在开发中,以在 macOS Sierra 中启用此键映射.但是,目前它不起作用.

我的想法是,如果我将 Caps Lock 映射到 Preferences/Keyboard/Modifier Keys 中的 Control,那我就成功了.我看到了人们用 AppleScript 做的一些有趣的事情

解决方案

也许你可以尝试创建一个 自定义键绑定文件,本机工作.

此外,这里有一个有用的工具,您可以用来编辑键绑定文件.

希望有帮助.

I am well aware of karabiner-elements which is still in development to enable this key mapping in macOS Sierra. However, at the current moment it doesn't work.

My thought is that if I map Caps Lock to Control in Preferences/Keyboard/Modifier Keys that gets me half way there. I have seen some interesting things people have done with AppleScript here. I am hoping there is a simple way to achieve this via AppleScript. Its also worth mentioning that karabiner-elements is capable of swapping Caps Lock and Escape (here are their examples).

Moreover, I tried to use Keyboard Maestro but my macro wouldn't recognize my Caps Lock key for my MacBook Pro 2015--I did set my Caps Lock to "No Action" in keyboard preferences, restarted, etc. Below is a screenshot of what it should look like in Keyboard Maestro for reference.

In short, I tried everything and hope there is a simple solution to achieve this via AppleScript. Thanks in advance.

解决方案

Perhaps you could try creating a custom key binding file, which works natively.

Also, here is a helpful tool you can use to edit the key bindings file.

Hopefully that helps.

这篇关于Applescript 在点击时将 Esc 映射到 Caps Lock;按下时控制大写锁定(macOS Sierra)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆