We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 391e233 commit eb4b632Copy full SHA for eb4b632
src/client/scripts/EventHandler.js
@@ -38,6 +38,13 @@ class EventHandler {
38
//Keydown
39
$(document).on("keydown", function (z) {
40
_this.keys[z.code] = true;
41
+ //Digits
42
+ for (var i = 1; i < 10; i++) {
43
+ if (z.code === `Digit${i}` && _this.gameState === "gameLock") {
44
+ _this.game.inv_bar.setFocus(i - 1);
45
+ focus = i - 1;
46
+ }
47
48
//Klawisz Escape
49
if (z.code === "Escape" && _this.gameState === "inventory") {
50
_this.setState("menu");
0 commit comments