mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 10:01:23 +01:00
refactor(es modules): dissolve general.js
This commit is contained in:
parent
9206f46c42
commit
2e4d142cf7
90 changed files with 802 additions and 749 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import {byId} from "/src/utils/shorthands";
|
||||
import {toggleLayer} from "/src/layers";
|
||||
import {byId} from "utils/shorthands";
|
||||
import {toggleLayer} from "layers";
|
||||
import {showAboutDialog} from "scripts/options/about";
|
||||
|
||||
// Hotkeys, see github.com/Azgaar/Fantasy-Map-Generator/wiki/Hotkeys
|
||||
document.on("keydown", handleKeydown);
|
||||
|
|
@ -24,7 +25,7 @@ function handleKeyup(event) {
|
|||
const shift = shiftKey || key === "Shift";
|
||||
const alt = altKey || key === "Alt";
|
||||
|
||||
if (code === "F1") showInfo();
|
||||
if (code === "F1") showAboutDialog();
|
||||
else if (code === "F2") regeneratePrompt();
|
||||
else if (code === "F6") quickSave();
|
||||
else if (code === "F9") quickLoad();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue