在Mac sierra上捕获并更改键盘以模拟Neo2键盘布局 [英] Catch and change keyboard on mac sierra to emulate neo2 keyboard layout

查看:156
本文介绍了在Mac sierra上捕获并更改键盘以模拟Neo2键盘布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用优化的布局neo2: https://www.neo-layout.org/

I am using the optimised layout neo2: https://www.neo-layout.org/

不幸的是,mac版本基于karabiner( https://pqrs.org/osx/karabiner/)自Sierra更新以来已停止工作. 有一个很有前途的新版本,称为karabiner元素( https://github.com/tekezo/Karabiner-Elements ),有望解决这个问题.

Unfortunately the mac version was based on karabiner (https://pqrs.org/osx/karabiner/) which has stopped working since the Sierra update. There is a promising new Version called karabiner elements (https://github.com/tekezo/Karabiner-Elements) which will hopefully solve this problem.

由于我现在不能在Mac sierra上运行该修补程序,因此,我正在寻找一种非通用的快速且肮脏"的解决方案,该解决方案仅将标准的德语键盘映射到neo布局.

Since i do not now when the fix will work on mac sierra, I am looking for a non generic "quick and dirty" solution, which just maps the standard german keyboard to the neo layout.

  1. 是否可以在系统范围内捕获Mac的键盘事件?
  2. 我必须使用哪种语言/框架才能实现此解决方法?

推荐答案

我建议使用 KeyBindingsEditor 创建/编辑您的密钥绑定文件,该文件应该在以下位置找到/创建:{您的用户文件夹}/Library/KeyBindings/DefaultKeyBinding.dict

I would suggest using KeyBindingsEditor to create/edit your key bindings file, which should be located/created here: {your user folder}/Library/KeyBindings/DefaultKeyBinding.dict

请注意,您的键绑定文件必须使用UTF-8编码,并且必须对其进行修改后重新启动计算机才能使它们生效.

Note that your key bindings file must use UTF-8 encoding, and you must restart your computer after making modifications for them to take effect.

此外,这是有关您可能会发现有用的> macOS中的自定义键绑定.

这篇关于在Mac sierra上捕获并更改键盘以模拟Neo2键盘布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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