Skip to content

Commit

Permalink
added new keycode mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
klues committed Dec 7, 2023
1 parent db4f018 commit 269a6b6
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion webgui/js/constantsGeneric.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,21 @@ C.KEYCODE_MAPPING[C.JS_KEYCODE_ALT] = 'KEY_ALT';
C.KEYCODE_MAPPING[C.JS_KEYCODE_GUI] = 'KEY_GUI'; //Windows
C.KEYCODE_MAPPING[C.JS_KEYCODE_RIGHTALT] = 'KEY_RIGHT_ALT'; //Windows
C.KEYCODE_MAPPING[92] = 'KEY_RIGHT_GUI';
C.KEYCODE_MAPPING[187] = 'KEY_PLUS';
C.KEYCODE_MAPPING[189] = 'KEY_MINUS';
C.KEYCODE_MAPPING[300] = 'KEY_ASTERISK';
C.KEYCODE_MAPPING[301] = 'KEY_SLASH';
C.KEYCODE_MAPPING[190] = 'KEY_DOT';
C.KEYCODE_MAPPING[302] = 'KEY_COLON';
C.KEYCODE_MAPPING[303] = 'KEY_SEMICOLON';
C.KEYCODE_MAPPING[191] = 'KEY_HASH';
C.KEYCODE_MAPPING[107] = 'KEY_KP_PLUS';
C.KEYCODE_MAPPING[109] = 'KEY_KP_MINUS';
C.KEYCODE_MAPPING[106] = 'KEY_KP_ASTERISK';
C.KEYCODE_MAPPING[111] = 'KEY_KP_SLASH';

C.SUPPORTED_KEYCODES = [];
for (var i = 0; i < 300; i++) {
for (var i = 0; i < 400; i++) {
if (C.KEYCODE_MAPPING[i]) {
C.SUPPORTED_KEYCODES.push(i);
}
Expand Down

0 comments on commit 269a6b6

Please sign in to comment.