-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvement: button names instead of codes
- Loading branch information
Showing
8 changed files
with
382 additions
and
64 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 |
---|---|---|
@@ -0,0 +1,103 @@ | ||
## Клавиатура и мышь | ||
Название клавиши | Значение | ||
------------ | ------------- | ||
MOUSE LEFT BUTTON | `MOUSE-LEFT-BTN` | ||
MOUSE RIGHT BUTTON | `MOUSE-RIGHT-BTN` | ||
MOUSE MIDDLE BUTTON | `MOUSE-MIDDLE-BTN` | ||
MOUSE SIDE 1 BUTTON | `MOUSE-SIDE1-BTN` | ||
MOUSE SIDE 2 BUTTON | `MOUSE-SIDE1-BTN` | ||
ESCAPE | `ESCAPE` | ||
F1 | `F1` | ||
F2 | `F2` | ||
F3 | `F3` | ||
F4 | `F4` | ||
F5 | `F5` | ||
F6 | `F6` | ||
F7 | `F7` | ||
F8 | `F8` | ||
F9 | `F9` | ||
F10 | `F10` | ||
F11 | `F11` | ||
F12 | `F12` | ||
TAB | `TAB` | ||
CAPS-LOCK | `CAPS-LOCK` | ||
SHIFT | `SHIFT` | ||
CTRL | `CTRL` | ||
WIN | `WIN` | ||
ALT | `ALT` | ||
ПРОБЕЛ | `SPACE` | ||
ENTER | `ENTER` | ||
BACKSPACE | `BACKSPACE` | ||
~ | `~` | ||
1 | `1` | ||
2 | `2` | ||
3 | `3` | ||
4 | `4` | ||
5 | `5` | ||
6 | `6` | ||
7 | `7` | ||
8 | `8` | ||
9 | `9` | ||
0 | `0` | ||
\- | `-` | ||
= + | `=` | ||
a A | `A` | ||
b B | `B` | ||
c C | `C` | ||
d D | `D` | ||
e E | `E` | ||
f F | `F` | ||
g G | `G` | ||
h H | `H` | ||
i I | `I` | ||
j J | `J` | ||
k K | `K` | ||
l L | `L` | ||
m M | `M` | ||
n N | `N` | ||
o O | `O` | ||
p P | `P` | ||
q Q | `Q` | ||
r R | `R` | ||
s S | `S` | ||
t T | `T` | ||
u U | `U` | ||
v V | `V` | ||
w W | `W` | ||
x X | `X` | ||
y Y | `Y` | ||
z Z | `Z` | ||
[ | `[` | ||
] | `]` | ||
; : | `;` | ||
‘ « | `'` | ||
\ | `\` | ||
PRINTSCREEN | `PRINTSCREEN` | ||
SCROLL-LOCK | `SCROLL-LOCK` | ||
ПАУЗА | `PAUSE` | ||
INSERT | `INSERT` | ||
DELETE | `DELETE` | ||
HOME | `HOME` | ||
END | `END` | ||
PAGE-UP | `PAGE-UP` | ||
PAGE-DOWN | `PAGE-DOWN` | ||
ВВЕРХ | `UP` | ||
ВНИЗ | `DOWN` | ||
ВЛЕВО | `LEFT` | ||
ВПРАВО | `RIGHT` | ||
NUM-LOCK | `NUM-LOCK` | ||
NUMPAD 0 | `NUMPAD0` | ||
NUMPAD 1 | `NUMPAD1` | ||
NUMPAD 2 | `NUMPAD2` | ||
NUMPAD 3 | `NUMPAD3` | ||
NUMPAD 4 | `NUMPAD4` | ||
NUMPAD 5 | `NUMPAD5` | ||
NUMPAD 6 | `NUMPAD6` | ||
NUMPAD 7 | `NUMPAD7` | ||
NUMPAD 8 | `NUMPAD8` | ||
NUMPAD 9 | `NUMPAD9` | ||
NUMPAD / | `NUMPAD-DIVIDE` | ||
NUMPAD \* | `NUMPAD-MULTIPLY` | ||
NUMPAD - | `NUMPAD-MINUS` | ||
NUMPAD + | `NUMPAD-PLUS` | ||
NUMPAD DEL | `NUMPAD-DEL` |
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 |
---|---|---|
@@ -0,0 +1,113 @@ | ||
## Keyboard and mouse | ||
Key name | Value | ||
------------ | ------------- | ||
MOUSE LEFT BUTTON | `MOUSE-LEFT-BTN` | ||
MOUSE RIGHT BUTTON | `MOUSE-RIGHT-BTN` | ||
MOUSE MIDDLE BUTTON | `MOUSE-MIDDLE-BTN` | ||
MOUSE SIDE 1 BUTTON | `MOUSE-SIDE1-BTN` | ||
MOUSE SIDE 2 BUTTON | `MOUSE-SIDE1-BTN` | ||
ESCAPE | `ESCAPE` | ||
F1 | `F1` | ||
F2 | `F2` | ||
F3 | `F3` | ||
F4 | `F4` | ||
F5 | `F5` | ||
F6 | `F6` | ||
F7 | `F7` | ||
F8 | `F8` | ||
F9 | `F9` | ||
F10 | `F10` | ||
F11 | `F11` | ||
F12 | `F12` | ||
TAB | `TAB` | ||
CAPS-LOCK | `CAPS-LOCK` | ||
SHIFT | `SHIFT` | ||
CTRL | `CTRL` | ||
WIN | `WIN` | ||
ALT | `ALT` | ||
SPACE | `SPACE` | ||
ENTER | `ENTER` | ||
BACKSPACE | `BACKSPACE` | ||
~ | `~` | ||
1 | `1` | ||
2 | `2` | ||
3 | `3` | ||
4 | `4` | ||
5 | `5` | ||
6 | `6` | ||
7 | `7` | ||
8 | `8` | ||
9 | `9` | ||
0 | `0` | ||
\- | `-` | ||
= + | `=` | ||
a A | `A` | ||
b B | `B` | ||
c C | `C` | ||
d D | `D` | ||
e E | `E` | ||
f F | `F` | ||
g G | `G` | ||
h H | `H` | ||
i I | `I` | ||
j J | `J` | ||
k K | `K` | ||
l L | `L` | ||
m M | `M` | ||
n N | `N` | ||
o O | `O` | ||
p P | `P` | ||
q Q | `Q` | ||
r R | `R` | ||
s S | `S` | ||
t T | `T` | ||
u U | `U` | ||
v V | `V` | ||
w W | `W` | ||
x X | `X` | ||
y Y | `Y` | ||
z Z | `Z` | ||
[ | `[` | ||
] | `]` | ||
; : | `;` | ||
‘ « | `'` | ||
\ | `\` | ||
PRINTSCREEN | `PRINTSCREEN` | ||
SCROLL-LOCK | `SCROLL-LOCK` | ||
PAUSE | `PAUSE` | ||
INSERT | `INSERT` | ||
DELETE | `DELETE` | ||
HOME | `HOME` | ||
END | `END` | ||
PAGE-UP | `PAGE-UP` | ||
PAGE-DOWN | `PAGE-DOWN` | ||
UP | `UP` | ||
DOWN | `DOWN` | ||
LEFT | `LEFT` | ||
RIGHT | `RIGHT` | ||
NUM-LOCK | `NUM-LOCK` | ||
NUMPAD 0 | `NUMPAD0` | ||
NUMPAD 1 | `NUMPAD1` | ||
NUMPAD 2 | `NUMPAD2` | ||
NUMPAD 3 | `NUMPAD3` | ||
NUMPAD 4 | `NUMPAD4` | ||
NUMPAD 5 | `NUMPAD5` | ||
NUMPAD 6 | `NUMPAD6` | ||
NUMPAD 7 | `NUMPAD7` | ||
NUMPAD 8 | `NUMPAD8` | ||
NUMPAD 9 | `NUMPAD9` | ||
NUMPAD / | `NUMPAD-DIVIDE` | ||
NUMPAD \* | `NUMPAD-MULTIPLY` | ||
NUMPAD - | `NUMPAD-MINUS` | ||
NUMPAD + | `NUMPAD-PLUS` | ||
NUMPAD DEL | `NUMPAD-DEL` | ||
|
||
## Additional buttons | ||
Key name | Value | ||
------------ | ------------- | ||
VOLUME UP | `VOLUME-UP` | ||
VOLUME DOWN | `VOLUME-DOWN` | ||
HIDE APPS | `HIDE-APPS` | ||
DISPLAY KEYBOARD | `DISPLAY-KEYBOARD` | ||
GAMEBAR | `GAMEBAR` | ||
GAMEBAR SCREENSHOT | `GAMEBAR-SCREENSHOT` |
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,10 +1,3 @@ | ||
(function () { | ||
var blockContextMenu, myElement; | ||
|
||
blockContextMenu = function (evt) { | ||
evt.preventDefault(); | ||
}; | ||
|
||
myElement = document.querySelector('body'); | ||
myElement.addEventListener('contextmenu', blockContextMenu); | ||
document.addEventListener('contextmenu', function (evt) {evt.preventDefault();}); | ||
})(); |
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
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
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
Oops, something went wrong.