Translate accelerator.md of 45739ce434
This commit is contained in:
parent
060d06d396
commit
1db72f8010
1 changed files with 22 additions and 25 deletions
|
@ -1,46 +1,43 @@
|
||||||
# Accelerator
|
# Accelerator
|
||||||
|
|
||||||
An accelerator is a string that represents a keyboard shortcut. It can contain
|
一个 `Accelerator` 是一个表示某个快捷键组合的字符串。它包含了用 `+` 连接的若干个按键。
|
||||||
multiple modifiers and key codes, combined by the `+` character.
|
|
||||||
|
|
||||||
Examples:
|
例如:
|
||||||
|
|
||||||
* `Command+A`
|
* `Command+A`
|
||||||
* `Ctrl+Shift+Z`
|
* `Ctrl+Shift+Z`
|
||||||
|
|
||||||
## Platform notice
|
## 运行平台相关的提示
|
||||||
|
|
||||||
On Linux and Windows, the `Command` key does not have any effect so
|
在 Linux 和 Windows 上,`Command` 键并不存在,因此我们通常用 `CommandOrControl` 来表示“在 OS X 下为 `Command` 键,但在
|
||||||
use `CommandOrControl` which represents `Command` on OS X and `Control` on
|
Linux 和 Windows 下为 `Control` 键。
|
||||||
Linux and Windows to define some accelerators.
|
|
||||||
|
|
||||||
The `Super` key is mapped to the `Windows` key on Windows and Linux and
|
`Super` 键是指 Linux 和 Windows 上的 `Windows` 键,但是在 OS X 下为 `Command` 键。
|
||||||
`Cmd` on OS X.
|
|
||||||
|
|
||||||
## Available modifiers
|
## 可用的功能按键
|
||||||
|
|
||||||
* `Command` (or `Cmd` for short)
|
* `Command`(缩写为 `Cmd`)
|
||||||
* `Control` (or `Ctrl` for short)
|
* `Control`(缩写为 `Ctrl`)
|
||||||
* `CommandOrControl` (or `CmdOrCtrl` for short)
|
* `CommandOrControl`(缩写为 `CmdOrCtrl`)
|
||||||
* `Alt`
|
* `Alt`
|
||||||
* `Shift`
|
* `Shift`
|
||||||
* `Super`
|
* `Super`
|
||||||
|
|
||||||
## Available key codes
|
## 可用的普通按键
|
||||||
|
|
||||||
* `0` to `9`
|
* `0` 到 `9`
|
||||||
* `A` to `Z`
|
* `A` 到 `Z`
|
||||||
* `F1` to `F24`
|
* `F1` 到 `F24`
|
||||||
* Punctuations like `~`, `!`, `@`, `#`, `$`, etc.
|
* 类似与 `~`、`!`、`@`、`#`、`$` 的标点符号。
|
||||||
* `Plus`
|
* `Plus`
|
||||||
* `Space`
|
* `Space`
|
||||||
* `Backspace`
|
* `Backspace`
|
||||||
* `Delete`
|
* `Delete`
|
||||||
* `Insert`
|
* `Insert`
|
||||||
* `Return` (or `Enter` as alias)
|
* `Return`(和 `Enter` 等同)
|
||||||
* `Up`, `Down`, `Left` and `Right`
|
* `Up`、`Down`、`Left` 和 `Right`
|
||||||
* `Home` and `End`
|
* `Home` 和 `End`
|
||||||
* `PageUp` and `PageDown`
|
* `PageUp` 和 `PageDown`
|
||||||
* `Escape` (or `Esc` for short)
|
* `Escape`(缩写为 `Esc`)
|
||||||
* `VolumeUp`, `VolumeDown` and `VolumeMute`
|
* `VolumeUp`、`VolumeDown` 和 `VolumeMute`
|
||||||
* `MediaNextTrack`, `MediaPreviousTrack`, `MediaStop` and `MediaPlayPause`
|
* `MediaNextTrack`、`MediaPreviousTrack`、`MediaStop` 和 `MediaPlayPause`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue