热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

如何在MacOSX中重新映射“上下文菜单”键?-Howtoremap“ContextMenu”keyinMacOSX?

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 个解决方案

#1


Use KeyRemap4MacBook (Karabiner for osx 10.9, 10.10). As Mecki pointed out, XML .keylayouts / Ukelele can't solve your problem.

使用KeyRemap4MacBook(Karabiner for osx 10.9,10.10)。正如Mecki指出的那样,XML .keylayouts / Ukelele无法解决您的问题。

In spite of the name, KeyRemap4MacBook works on any Mac (OS X 10.4 or later).

尽管名称如此,但KeyRemap4MacBook可以在任何Mac(OS X 10.4或更高版本)上运行。

The settings you want are under "For PC Users" » "Change PC Application Key".

您需要的设置位于“For PC Users”»“Change PC Application Key”下。

enter image description here

#2


Use KeyRemap4Macbook. Edit private.xml file like this:

使用KeyRemap4Macbook。编辑private.xml文件,如下所示:


    Change Windows context menu key to Right option key
    private.win_context_menu_option_key
    --KeyToKey-- KeyCode::PC_APPLICATION, KeyCode::OPTION_R

This code will remap right option key to the context menu key.

此代码将右选项键重新映射到上下文菜单键。

#3


KeyRemap4MacBook

Entry: For PC Users -> Change PC Application Key -> Application Key to Option_L

条目:对于PC用户 - >更改PC应用程序密钥 - > Option_L的应用程序密钥

#4


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美元。

#5


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文件可能更容易......


(Inline graphic shows part of drop-down-menu)

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

#6


Unfortunately the latest macOS Sierra doesn't support Karabiner yet. An easy solution is to convert capslock key with command key.

不幸的是,最新的macOS Sierra还不支持Karabiner。一个简单的解决方案是使用命令键转换大写锁定键。


推荐阅读
  • 带添加按钮的GridView,item的删除事件
    先上图片效果;gridView无数据时显示添加按钮,有数据时,第一格显示添加按钮,后面显示数据:布局文件:addr_manage.xml<?xmlve ... [详细]
  • YOLOv7基于自己的数据集从零构建模型完整训练、推理计算超详细教程
    本文介绍了关于人工智能、神经网络和深度学习的知识点,并提供了YOLOv7基于自己的数据集从零构建模型完整训练、推理计算的详细教程。文章还提到了郑州最低生活保障的话题。对于从事目标检测任务的人来说,YOLO是一个熟悉的模型。文章还提到了yolov4和yolov6的相关内容,以及选择模型的优化思路。 ... [详细]
  • android listview OnItemClickListener失效原因
    最近在做listview时发现OnItemClickListener失效的问题,经过查找发现是因为button的原因。不仅listitem中存在button会影响OnItemClickListener事件的失效,还会导致单击后listview每个item的背景改变,使得item中的所有有关焦点的事件都失效。本文给出了一个范例来说明这种情况,并提供了解决方法。 ... [详细]
  • 使用Ubuntu中的Python获取浏览器历史记录原文: ... [详细]
  • 本文讨论了一个关于cuowu类的问题,作者在使用cuowu类时遇到了错误提示和使用AdjustmentListener的问题。文章提供了16个解决方案,并给出了两个可能导致错误的原因。 ... [详细]
  • Go Cobra命令行工具入门教程
    本文介绍了Go语言实现的命令行工具Cobra的基本概念、安装方法和入门实践。Cobra被广泛应用于各种项目中,如Kubernetes、Hugo和Github CLI等。通过使用Cobra,我们可以快速创建命令行工具,适用于写测试脚本和各种服务的Admin CLI。文章还通过一个简单的demo演示了Cobra的使用方法。 ... [详细]
  • 本文介绍了如何使用C#制作Java+Mysql+Tomcat环境安装程序,实现一键式安装。通过将JDK、Mysql、Tomcat三者制作成一个安装包,解决了客户在安装软件时的复杂配置和繁琐问题,便于管理软件版本和系统集成。具体步骤包括配置JDK环境变量和安装Mysql服务,其中使用了MySQL Server 5.5社区版和my.ini文件。安装方法为通过命令行将目录转到mysql的bin目录下,执行mysqld --install MySQL5命令。 ... [详细]
  • CentOS 6.5安装VMware Tools及共享文件夹显示问题解决方法
    本文介绍了在CentOS 6.5上安装VMware Tools及解决共享文件夹显示问题的方法。包括清空CD/DVD使用的ISO镜像文件、创建挂载目录、改变光驱设备的读写权限等步骤。最后给出了拷贝解压VMware Tools的操作。 ... [详细]
  • 本文介绍了Windows操作系统的版本及其特点,包括Windows 7系统的6个版本:Starter、Home Basic、Home Premium、Professional、Enterprise、Ultimate。Windows操作系统是微软公司研发的一套操作系统,具有人机操作性优异、支持的应用软件较多、对硬件支持良好等优点。Windows 7 Starter是功能最少的版本,缺乏Aero特效功能,没有64位支持,最初设计不能同时运行三个以上应用程序。 ... [详细]
  • 2016 linux发行版排行_灵越7590 安装 linux (manjarognome)
    RT之前做了一次灵越7590黑苹果炒作业的文章,希望能够分享给更多不想折腾的人。kawauso:教你如何给灵越7590黑苹果抄作业​zhuanlan.z ... [详细]
  • 本文介绍了数据库的存储结构及其重要性,强调了关系数据库范例中将逻辑存储与物理存储分开的必要性。通过逻辑结构和物理结构的分离,可以实现对物理存储的重新组织和数据库的迁移,而应用程序不会察觉到任何更改。文章还展示了Oracle数据库的逻辑结构和物理结构,并介绍了表空间的概念和作用。 ... [详细]
  • Windows下配置PHP5.6的方法及注意事项
    本文介绍了在Windows系统下配置PHP5.6的步骤及注意事项,包括下载PHP5.6、解压并配置IIS、添加模块映射、测试等。同时提供了一些常见问题的解决方法,如下载缺失的msvcr110.dll文件等。通过本文的指导,读者可以轻松地在Windows系统下配置PHP5.6,并解决一些常见的配置问题。 ... [详细]
  • Metasploit攻击渗透实践
    本文介绍了Metasploit攻击渗透实践的内容和要求,包括主动攻击、针对浏览器和客户端的攻击,以及成功应用辅助模块的实践过程。其中涉及使用Hydra在不知道密码的情况下攻击metsploit2靶机获取密码,以及攻击浏览器中的tomcat服务的具体步骤。同时还讲解了爆破密码的方法和设置攻击目标主机的相关参数。 ... [详细]
  • C语言注释工具及快捷键,删除C语言注释工具的实现思路
    本文介绍了C语言中注释的两种方式以及注释的作用,提供了删除C语言注释的工具实现思路,并分享了C语言中注释的快捷键操作方法。 ... [详细]
  • HDFS2.x新特性
    一、集群间数据拷贝scp实现两个远程主机之间的文件复制scp-rhello.txtroothadoop103:useratguiguhello.txt推pushscp-rr ... [详细]
author-avatar
手机用户2502930273
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有