Eclipse 插件开发默认键绑定:特殊键(Shift、Alt 等)的键码是什么?
Eclipse Plugin Development Default Key Bindings: What are the key codes for special keys (Shift, Alt, etc.)?
我正在开发一个 Eclipse 插件,因此定义了一些键绑定。从 this resource 我知道控制键由代码 M1
表示。
我在哪里可以找到 table 将所有特殊键映射到它们的键码,特别是 Shift、Alt、Caps Lock 和 Enter?
The recognized modifiers keys are M1, M2, M3, M4, ALT, COMMAND, CTRL, and SHIFT. The "M" modifier keys are a platform-independent way of representing keys, and these are generally preferred. M1 is the COMMAND key on MacOS X, and the CTRL key on most other platforms. M2 is the SHIFT key. M3 is the Option key on MacOS X, and the ALT key on most other platforms. M4 is the CTRL key on MacOS X, and is undefined on other platforms.
我正在开发一个 Eclipse 插件,因此定义了一些键绑定。从 this resource 我知道控制键由代码 M1
表示。
我在哪里可以找到 table 将所有特殊键映射到它们的键码,特别是 Shift、Alt、Caps Lock 和 Enter?
The recognized modifiers keys are M1, M2, M3, M4, ALT, COMMAND, CTRL, and SHIFT. The "M" modifier keys are a platform-independent way of representing keys, and these are generally preferred. M1 is the COMMAND key on MacOS X, and the CTRL key on most other platforms. M2 is the SHIFT key. M3 is the Option key on MacOS X, and the ALT key on most other platforms. M4 is the CTRL key on MacOS X, and is undefined on other platforms.