1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

Add digits and display unknown codes in brackets

This commit is contained in:
EmeraldBlock 2020-10-03 13:21:23 -05:00 committed by GitHub
parent 2aa3506bb5
commit 36b68cc944
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -262,7 +262,7 @@ export function getStringForKeyCode(code) {
return "'"; return "'";
} }
return code >= 65 && code <= 90 ? String.fromCharCode(code) : "<EFBFBD>"; return 48 <= code && code <= 57 || 65 <= code && code <= 90 ? String.fromCharCode(code) : "[" + code + "]";
} }
export class Keybinding { export class Keybinding {