diff --git a/src/js/game/key_action_mapper.js b/src/js/game/key_action_mapper.js index 9c1b2f96..872db1d2 100644 --- a/src/js/game/key_action_mapper.js +++ b/src/js/game/key_action_mapper.js @@ -248,6 +248,8 @@ export function getStringForKeyCode(code) { return ","; case 189: return "-"; + case 190: + return "."; case 191: return "/"; case 219: @@ -260,7 +262,9 @@ export function getStringForKeyCode(code) { return "'"; } - return String.fromCharCode(code); + return (48 <= code && code <= 57) || (65 <= code && code <= 90) + ? String.fromCharCode(code) + : "[" + code + "]"; } export class Keybinding {