summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/hotkeys.js
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2022-04-14 11:41:13 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2022-05-16 10:01:17 +0200
commit30d502ff637bce778ec3ec5de86e357e61f0d68a (patch)
treeafb560730499beb1bcbef260dcc7e36cd78cf2d8 /opendc-web/opendc-web-ui/src/hotkeys.js
parent69ec8d277bb702cc7aad3460775f829a48a9b5f0 (diff)
fix(web/ui): Fix hotkeys support in React 18
This change fixes an issue where the library for hotkeys that we previously used does not (yet) support React 18. Instead, we switch to a simpler solution based on React Hooks which is compatible with React 18.
Diffstat (limited to 'opendc-web/opendc-web-ui/src/hotkeys.js')
-rw-r--r--opendc-web/opendc-web-ui/src/hotkeys.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/opendc-web/opendc-web-ui/src/hotkeys.js b/opendc-web/opendc-web-ui/src/hotkeys.js
deleted file mode 100644
index 1c4d2621..00000000
--- a/opendc-web/opendc-web-ui/src/hotkeys.js
+++ /dev/null
@@ -1,6 +0,0 @@
-export const KeymapConfiguration = {
- MOVE_LEFT: ['a', 'left'],
- MOVE_RIGHT: ['d', 'right'],
- MOVE_UP: ['w', 'up'],
- MOVE_DOWN: ['s', 'down'],
-}