作者:手机用户2502930273 | 来源:互联网 | 2023-05-19 02:44
IhaveaLogitechkeyboard(Ultra-FlatKeyboardDarkShinetobeexact),whichhasthecontextmenu
I have a Logitech keyboard (Ultra-Flat Keyboard Dark Shine to be exact), which has the context menu key in the middle of the windows and alt key, which is quite annoying.
我有一个罗技键盘(确切地说是超平键盘Dark Shine),它在窗口和alt键的中间有上下文菜单键,这很烦人。
Here's a screenshot of where the key is:
以下是密钥所在位置的屏幕截图:
http://freshlog.com/grabs/ff532-How_do_I_remap_the_context_menu_key_in_Mac_OS_X
I can remap the windows and alt keys under the default Keyboard System Preferences Panel, but there doesn't seem to be a way to remap the context menu key.
我可以在默认的键盘系统首选项面板下重新映射窗口和alt键,但似乎没有办法重新映射上下文菜单键。
Any ideas?
6 个解决方案
You can use Karabiner to map App to Command+Option:
您可以使用Karabiner将App映射到Command + Option:
You can then use Keyboard Maestro to map Command+Option+Letter, where Letter is a key that denotes an application, to focus the application:
然后,您可以使用Keyboard Maestro映射Command + Option + Letter,其中Letter是表示应用程序的键,用于关注应用程序:
For example, you can then do App+C to focus Chrome, App+T to focus Terminal, App+S to focus Slack etc. (if an app isn't already open, Keyboard Maestro opens it first).
例如,您可以使用App + C来关注Chrome,使用App + T来关注终端,使用App + S来关注Slack等(如果应用尚未打开,则首先打开它的键盘Maestro)。
If you're using a generic keyboard, then you have a dedicated App key:
如果您使用的是通用键盘,那么您有一个专用的App键:
If you're using an Apple keyboard, you have to hold Command and Option, but they are next to each other, and appear on both sides of the spacebar:
如果您使用的是Apple键盘,则必须按住Command和Option,但它们彼此相邻,并显示在空格键的两侧:
Keep in mind that OS X already uses Command+Option+Esc to open the Force Quit Applications dialogue, so you could now use App+Esc for that. Likewise, OS X uses Command+Option+W to close all of the windows in the focus application (tabs in Chrome).
请记住,OS X已经使用Command + Option + Esc打开Force Quit Applications对话框,因此您现在可以使用App + Esc。同样,OS X使用Command + Option + W关闭焦点应用程序中的所有窗口(Chrome中的选项卡)。
Notes:
- Karabiner is an open source kernel extension for modifying the way keyboard input is handled by OS X.
Karabiner是一个开源内核扩展,用于修改OS X处理键盘输入的方式。
- Keyboard Maestro is a proprietary application for creating keyboard shortcuts in OS X. It has a free 30 day trial, and costs $36.
键盘Maestro是用于在OS X中创建键盘快捷键的专有应用程序。它有30天的免费试用,售价36美元。
The latest MacOS versions are served by Karabiner Elements 12.1.
Key-to-key remapping are done in the Simple Modifications
tab and conveniently selected in 2 rows of drop-down-menus (see: screenshot).
最新的MacOS版本由Karabiner Elements 12.1提供。密钥到密钥重新映射在“简单修改”选项卡中完成,并在2行下拉菜单中方便地选择(请参阅:屏幕截图)。
Complex Modifications
in this Preferences Panel's tab have either to be added by importing them from the internet (Karabiner-E.'s site) or from the user's ~/.config/karabiner/assets/ complex_modifications
folder.
"Complex" ones from the net actually are also copied there and switched "on" (= [+ Enable]
) in the tab.
此首选项面板中的复杂修改要么通过从Internet(Karabiner-E.)的站点导入它们,要么从用户的〜/ .config / karabiner / assets / complex_modifications文件夹中添加。网络中的“复杂”实际上也会被复制并在选项卡中切换为“开启”(= [+启用])。
ALL modifications are finally stored (& thus "activated") in ~/.config/karabiner/karabiner.json
.
所有修改最终都存储在(/因此“激活”)〜/ .config / karabiner / karabiner.json中。
A pragmatic procedure (that also helps avoid mistakes while writing complex-mods yourself) is to copy & rename & alter one "imported" mod.
Once you are experienced (e.g.: different bracket types) it may be easier to edit the json file directly…
一个实用的过程(也有助于避免在自己编写复杂模型时出错)是复制并重命名和修改一个“导入”mod。一旦您有经验(例如:不同的括号类型),直接编辑json文件可能更容易......
There is no longer the option to constrict remaps to specific windows (can be simulated by an osascript AppleScript) as some other features.
A non-Element version of Karabiner is being developed.
不再可以选择将重映射到特定窗口(可以通过osascript AppleScript模拟)作为其他一些功能。正在开发一种非元素版本的Karabiner。
Two sites to get information & questions (answered) – but please search for previous "doubles" !:
两个网站获取信息和问题(已回答) - 但请搜索以前的“双打”!:
github.com >> Karabiner-Elements
groups.google.com/forums/ osx-karabiner
github.com >> Karabiner-Elements groups.google.com/forums/ osx-karabiner