-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(client-electron): allow to bind F20-F24 keys
fixes #346
- Loading branch information
1 parent
1f752c2
commit 94d9516
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
diff --git a/node_modules/electron-is-accelerator/index.js b/node_modules/electron-is-accelerator/index.js | ||
index 219cfad..1fd0454 100644 | ||
index 219cfad..1d412c0 100644 | ||
--- a/node_modules/electron-is-accelerator/index.js | ||
+++ b/node_modules/electron-is-accelerator/index.js | ||
@@ -1,7 +1,7 @@ | ||
"use strict"; | ||
|
||
const modifiers = /^(Command|Cmd|Control|Ctrl|CommandOrControl|CmdOrCtrl|Alt|Option|AltGr|Shift|Super)$/; | ||
-const keyCodes = /^([0-9A-Z)!@#$%^&*(:+<_>?~{|}";=,\-./`[\\\]']|F1*[1-9]|F10|F2[0-4]|Plus|Space|Tab|Backspace|Delete|Insert|Return|Enter|Up|Down|Left|Right|Home|End|PageUp|PageDown|Escape|Esc|VolumeUp|VolumeDown|VolumeMute|MediaNextTrack|MediaPreviousTrack|MediaStop|MediaPlayPause|PrintScreen)$/; | ||
+const keyCodes = /^([0-9A-Z)!@#$%^&*(:+<_>?~{|}";=,\-./`[\\\]']|F1*[1-9]|F10|F2[0-4]|Plus|Space|Tab|Backspace|Delete|Insert|Return|Enter|Up|Down|Left|Right|Home|End|PageUp|PageDown|Escape|Esc|VolumeUp|VolumeDown|VolumeMute|MediaNextTrack|MediaPreviousTrack|MediaStop|MediaPlayPause|PrintScreen|num0|num1|num2|num3|num4|num5|num6|num7|num8|num9|numdec|numadd|numsub|nummult|numdiv)$/; | ||
+const keyCodes = /^([0-9A-Z)!@#$%^&*(:+<_>?~{|}";=,\-./`[\\\]']|F(?:1[0-9]|2[0-4]|[1-9])|Plus|Space|Tab|Backspace|Delete|Insert|Return|Enter|Up|Down|Left|Right|Home|End|PageUp|PageDown|Escape|Esc|VolumeUp|VolumeDown|VolumeMute|MediaNextTrack|MediaPreviousTrack|MediaStop|MediaPlayPause|PrintScreen|num0|num1|num2|num3|num4|num5|num6|num7|num8|num9|numdec|numadd|numsub|nummult|numdiv)$/; | ||
|
||
module.exports = function (str) { | ||
let parts = str.split("+"); |