macos 在 Mac OS X 下使用外部“windows”键盘

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/56553/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 05:53:11  来源:igfitidea点击:

Using an external "windows"-keyboard under Mac OS X

macoskeyboardergonomics

提问by Mario F

I use a MacBook, but I've got a usual keyboard attached to it.

我使用的是 MacBook,但我连接了一个普通的键盘。

The problem is that the keys don't exactly map 1-to-1. One thing is the APPLE and ALT keys. They map to WIN and ALT, but they are usually physically inverted, so if you want to use them with the same layout you have to invert them in the OS. The Function keys work differently too. Fx on the external = Fn + Fx on the MacBook keyboard. And then there are all the insert, delete, keys.

问题是键不能完全映射为 1 到 1。一件事是 APPLE 和 ALT 键。它们映射到 WIN 和 ALT,但它们通常在物理上是颠倒的,所以如果你想以相同的布局使用它们,你必须在操作系统中颠倒它们。功能键的工作方式也不同。外部的 Fx = Fn + MacBook 键盘上的 Fx。然后是所有的插入、删除、键。

So, the question is, how do you come around this? Now I remap all the things I want at the System Preferences panel, but when I unplug the external keyboard it's all messed up. Is there a way to remap keys only for the external one? Some model of keyboard can store it's own mappings without needing the OS? Am I the only one who is bothered by this?

所以,问题是,你如何解决这个问题?现在我在“系统偏好设置”面板上重新映射了我想要的所有东西,但是当我拔下外部键盘时,一切都搞砸了。有没有办法只为外部密钥重新映射密钥?某些型号的键盘可以在不需要操作系统的情况下存储它自己的映射?只有我一个人为此烦恼吗?

(I would like to avoid buying an external mac keyboard, because I wanted to try one of the ergonomic models, and as far as I know, there are no mac ergonomic models)

(我想避免购买外置mac键盘,因为我想尝试其中一种符合人体工程学的型号,据我所知,没有mac符合人体工程学的型号)

Update: Thanks for the responses, I fixed this.

更新:感谢您的回复,我解决了这个问题。

To set the control keys for different keyboards, you have to go to System Preferences/Modifier Keys, then the drop down menu Select Keyboard allows you to choose one particular keyboard and set these keys. Works after unpluging/pluging it seems

要为不同的键盘设置控制键,您必须进入系统偏好设置/修饰键,然后下拉菜单选择键盘允许您选择一个特定的键盘并设置这些键。似乎在拔下/插入后工作

The suggestion from @Matthew Schinckel seems to work for the rest of the issues (function keys, ...). I didn't try it yet, as the commands keys were my biggest gripe.

@Matthew Schinckel 的建议似乎适用于其余问题(功能键,...)。我还没有尝试过,因为命令键是我最大的抱怨。

采纳答案by emeryc

In OS X 10.5 they allow you to have different keyboard setups for different keyboards. This works most of the time. I've had issues with very old keyboards that are plugged in via a PS2 to USB but otherwise it works fine.

在 OS X 10.5 中,它们允许您为不同的键盘设置不同的键盘。这在大多数情况下都有效。我在使用通过 PS2 插入 USB 的非常旧的键盘时遇到了问题,但除此之外它工作正常。

回答by Joe Chin

The best method I have is to download the Logitech Control Center for OSX from Logitech. Search throw the Installer package for the LCCKCHR.rsrc. Drop this file into either ~/Library/Keyboard Layouts or /Library/Keyboard Layouts. Logout and log back in and you'll notice a few more options in the International System Preferences under Inputs. Check the keyboard layouts you would like.

我拥有的最好方法是从 Logitech 下载 Logitech Control Center for OSX。搜索抛出 LCKCHR.rsrc 的安装程序包。将此文件放入 ~/Library/Keyboard Layouts 或 /Library/Keyboard Layouts。注销并重新登录,您会在输入下的国际系统首选项中注意到更多选项。检查您想要的键盘布局。

Although this keyboard layout is for Logitech keyboards it works for most keybaords (especially international users)

尽管此键盘布局适用于罗技键盘,但它适用于大多数键盘(尤其是国际用户)

回答by pauldunlop

You create create your own custom keyboard mapping, which could then be used with the keyboard language menu. So when you plug in your keyboard, just switch to your custom layout. OS X has supported this since 10.2, and Apple has documentation on how to produce your own custom maps.

您创建自己的自定义键盘映射,然后可以与键盘语言菜单一起使用。因此,当您插入键盘时,只需切换到您的自定义布局即可。OS X 从 10.2 开始支持这一点,Apple 有关于如何制作自己的自定义地图的文档。

http://developer.apple.com/technotes/tn2002/tn2056.html

http://developer.apple.com/technotes/tn2002/tn2056.html

It's not something I've tried myself, just read about it once or twice. Looks like it could potentially do the job. I'd just duplicate a mapping that is as close as you can get to what you want, and then customise it from there.

这不是我自己尝试过的,只需阅读一两次即可。看起来它有可能完成这项工作。我只是复制一个尽可能接近你想要的映射,然后从那里自定义它。

回答by Matthew Schinckel

You could investigate DoubleCommand, it may do what you need.

您可以调查 DoubleCommand,它可以满足您的需求。

There's an experimental version that allows for different properties for different keyboards.

有一个实验版本,可以为不同的键盘提供不同的属性。