From 0dd7468184a273e8124a1ca9e7b2ce98baba6fd7 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sat, 9 Jul 2022 16:01:00 +0300 Subject: [PATCH] refactor: hotkeys --- index.html | 60 +++---- src/dialogs/dialogs/heightmap-selection.js | 1 + src/modules/io/load.js | 2 +- src/modules/io/save.js | 8 +- src/modules/ui/{hotkeys.js => hotkeys.ts} | 124 +++++++++------ src/modules/ui/options.js | 175 ++++++++++++--------- src/modules/zoom.js | 6 +- src/scripts/listeners.ts | 2 + src/types/pack.d.ts | 7 + 9 files changed, 220 insertions(+), 165 deletions(-) rename src/modules/ui/{hotkeys.js => hotkeys.ts} (59%) diff --git a/index.html b/index.html index f8ed0bfa..79c5a79e 100644 --- a/index.html +++ b/index.html @@ -374,7 +374,6 @@ data-t="tipRegenerate" data-tip="Click to generate a new map" data-shortcut="F2" - onclick="regeneratePrompt()" class="options" style="display: none" > @@ -5562,19 +5561,14 @@