mirror of
https://github.com/HackPlan/atom-shell.git
synced 2026-04-29 12:15:38 +08:00
Add support for Plus as accelerator key, fixes #1050
This commit is contained in:
@@ -121,6 +121,9 @@ bool StringToAccelerator(const std::string& description,
|
|||||||
modifiers |= ui::EF_ALT_DOWN;
|
modifiers |= ui::EF_ALT_DOWN;
|
||||||
} else if (tokens[i] == "shift") {
|
} else if (tokens[i] == "shift") {
|
||||||
modifiers |= ui::EF_SHIFT_DOWN;
|
modifiers |= ui::EF_SHIFT_DOWN;
|
||||||
|
} else if (tokens[i] == "plus") {
|
||||||
|
modifiers |= ui::EF_SHIFT_DOWN;
|
||||||
|
key = ui::VKEY_OEM_PLUS;
|
||||||
} else if (tokens[i] == "tab") {
|
} else if (tokens[i] == "tab") {
|
||||||
key = ui::VKEY_TAB;
|
key = ui::VKEY_TAB;
|
||||||
} else if (tokens[i] == "space") {
|
} else if (tokens[i] == "space") {
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ Linux and Windows to define some accelerators.
|
|||||||
* `A` to `Z`
|
* `A` to `Z`
|
||||||
* `F1` to `F24`
|
* `F1` to `F24`
|
||||||
* Punctuations like `~`, `!`, `@`, `#`, `$`, etc.
|
* Punctuations like `~`, `!`, `@`, `#`, `$`, etc.
|
||||||
|
* `Plus`
|
||||||
* `Space`
|
* `Space`
|
||||||
* `Backspace`
|
* `Backspace`
|
||||||
* `Delete`
|
* `Delete`
|
||||||
|
|||||||
Reference in New Issue
Block a user