【问题标题】:Eclipse Plugin Development Default Key Bindings: What are the key codes for special keys (Shift, Alt, etc.)?Eclipse Plugin Development Default Key Bindings:特殊键(Shift、Alt等)的键码是什么?
【发布时间】:2020-10-24 07:13:27
【问题描述】:

我正在开发一个 Eclipse 插件,因此定义了一些键绑定。从this resource我知道控制键用代码M1表示。

在哪里可以找到将所有特殊键映射到其键码的表格,尤其是 Shift、Alt、Caps Lock 和 Enter?

【问题讨论】:

  • org.eclipse.ui.bindings 扩展点的 Eclipse 帮助文档涵盖了所有这些。请注意,在 macOS M1 上,⌘ 不是 Control。

标签: eclipse plugins eclipse-plugin


【解决方案1】:

来自the documentation

可识别的修饰键是 M1、M2、M3、M4、ALT、COMMAND、CTRL 和 SHIFT。 “M”修饰键是一种独立于平台的表示键的方式,通常首选这些方式。 M1 在 MacOS X 上是 COMMAND 键,在大多数其他平台上是 CTRL 键。 M2 是 SHIFT 键。 M3 在 MacOS X 上是 Option 键,在大多数其他平台上是 ALT 键。 M4 是 MacOS X 上的 CTRL 键,在其他平台上是未定义的。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-07-17
    • 2013-02-13
    • 2021-05-26
    • 1970-01-01
    • 2021-10-20
    • 1970-01-01
    • 1970-01-01
    • 2018-03-01
    相关资源
    最近更新 更多