在 Mac OS X 的 Komodo 上使用 ALT 键

发布于 2024-08-06 08:37:28 字数 494 浏览 1 评论 0原文

我在 Komodo IDE 上使用 Emacs 键绑定,其中 Komodo 默认使用“Meta”命令键。因此,当您在 Linux 上的 Emacs 中通常按 Alt+X 时,您可以按 Command-X。

我想使用实际的 Alt 键..所以当我尝试分配 Alt+K 时,Komodo 通知“此组合键不可用”(参见下面的屏幕截图)

Komodo 首选项对话框屏幕截图 http://dl.getdropbox.com/u/87045/permalinks/komodo-alt-key.png< /a>

如何在 Komodo 中使用 Alt 键?是否可以?

I am using the Emacs keybinding on Komodo IDE where Komodo uses the command key for "Meta" by default. So you press Command-X when you normally press Alt+X for Emacs on Linux.

I want to use the actual Alt key .. so when I tried to assign Alt+K, Komodo informs that "This key combination is not available" (see screenshot below)

Komodo Preferences Dialog screenshot http://dl.getdropbox.com/u/87045/permalinks/komodo-alt-key.png

How do I use the Alt key in Komodo? Is it possible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

可爱咩 2024-08-13 08:37:29

人们可以使用 ControllerMate 或类似工具解决此问题:

  • 普通键盘创建一个新的驱动程序配置
  • 为 该配置,交换 Option 和 Command 键
  • 禁用此新配置
  • 创建一个新的 ControllerMate 页面
  • 将一个应用程序块添加到该页面,该页面仅在 Komodo IDE 在前台运行时触发
  • 添加一个连接到应用程序块的属性块,以启用您的驱动程序
    配置。

因此,当 Komodo IDE 在前台运行时,ControllerMate 会交换
命令和选项,为您提供 OS X 中其他地方的元行为。

One can workaround this behavior using ControllerMate or a similar tool:

  • Create a new Driver Configuration for your normal keyboard
  • In that configuration, swap the Option and Command keys
  • Disable this new configuration
  • Create a new ControllerMate page
  • Add an Application Block to that page which only triggers when Komodo IDE is running in the foreground
  • Add a Properties Block connected to the Application Block which enables your Driver
    Configuration.

Thus, when Komodo IDE is running in the foreground, ControllerMate swaps
Command and Option, giving you the Meta behavior you get everywhere else in OS X.

青巷忧颜 2024-08-13 08:37:28

在 Mac 上,Option/Alt 键用于快速输入非 ASCII 字符。
Komodo 提供了一些涉及控制键的绑定,例如 Alt+Return to
编辑文件的属性,但远离 Alt/Option 键
大部分。

我尝试将 [转到文件...] 绑定到 Cmd+Alt+K。首选项对话框
接受了(虽然说先绑定了Cmd+Ø,后来又说
它与 Cmd+Alt+Û 绑定,两者都给我的感觉
绑定将无法工作。 Mozilla 存在 bug 处理
OS X 上的键绑定不一致,我们在这里看到了这一点。

Komodo 还允许您使用以下组合创建键绑定
Command、Control 和 Shift 键——我会坚持使用这些键,
并保留 Alt 键以输入非 ASCII 字符。

On the Mac the Option/Alt key is used to quickly enter non-ASCII characters.
Komodo provides a few bindings involving control keys, like Alt+Return to
edit a file's properties, but it stays away from the Alt/Option key for
the most part.

I tried binding [Go to file...] to Cmd+Alt+K. The preferences dialog
accepted it (although it said it was first bound to Cmd+¬, and later said
it was bound to Cmd+Alt+Û, both of which gave me the feeling that
the binding would fail to work. There have been Mozilla bugs dealing
with inconsistencies in keybindings on OS X, and we're seeing that here.

Komodo will also let you create keybindings using combinations of
the Command, Control, and Shift keys -- I would stick with those,
and leave the Alt key for entering non-ASCII characters.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文