mirror of
https://github.com/electron/electron.git
synced 2026-01-09 23:48:01 -05:00
feat: support capslock and numlock as accelerators (#16719)
* feat: support capslock as accelerator * also add numlock
This commit is contained in:
@@ -38,6 +38,10 @@ ui::KeyboardCode KeyboardCodeFromKeyIdentifier(const std::string& s,
|
||||
} else if (str == "plus") {
|
||||
*shifted = true;
|
||||
return ui::VKEY_OEM_PLUS;
|
||||
} else if (str == "capslock") {
|
||||
return ui::VKEY_CAPITAL;
|
||||
} else if (str == "numlock") {
|
||||
return ui::VKEY_NUMLOCK;
|
||||
} else if (str == "tab") {
|
||||
return ui::VKEY_TAB;
|
||||
} else if (str == "num0") {
|
||||
|
||||
@@ -58,6 +58,8 @@ The `Super` key is mapped to the `Windows` key on Windows and Linux and
|
||||
* `Plus`
|
||||
* `Space`
|
||||
* `Tab`
|
||||
* `Capslock`
|
||||
* `Numlock`
|
||||
* `Backspace`
|
||||
* `Delete`
|
||||
* `Insert`
|
||||
|
||||
Reference in New Issue
Block a user