Module:Keybinding/KnownKeys
Appearance
Documentation for this module may be created at Module:Keybinding/KnownKeys/doc
--[[
Exported from a running game instance using the following snippet in a developer
tools console window:
let table = "local KEYS = {";
for (const category in shapez.KEYMAPPINGS) {
for (const id in shapez.KEYMAPPINGS[category]) {
const name = shapez.T.keybindings.mappings[id];
const defaultKey = shapez.KEYMAPPINGS[category][id].keyCode;
table += "\n ";
table += `[${JSON.stringify(id)}] = { `;
table += JSON.stringify(name);
table += ", ";
table += JSON.stringify(shapez.getStringForKeyCode(defaultKey));
table += " },";
}
}
table += "\n}";
Used by Module:Keybinding and Template:Kbd.
]]
local KEYS = {
["confirm"] = { "Confirm", "⏎" },
["back"] = { "Back", "ESC" },
["menuOpenShop"] = { "Upgrades", "F" },
["menuOpenStats"] = { "Statistics", "G" },
["menuClose"] = { "Close Menu", "Q" },
["toggleHud"] = { "Toggle HUD", "F2" },
["exportScreenshot"] = { "Export whole Base as Image", "F3" },
["toggleFPSInfo"] = { "Toggle FPS and Debug Info", "F4" },
["switchLayers"] = { "Switch layers", "E" },
["showShapeTooltip"] = { "Show shape output tooltip", "ALT" },
["mapMoveUp"] = { "Move Up", "W" },
["mapMoveRight"] = { "Move Right", "D" },
["mapMoveDown"] = { "Move Down", "S" },
["mapMoveLeft"] = { "Move Left", "A" },
["mapMoveFaster"] = { "Move Faster", "⇪" },
["centerMap"] = { "Center Map", "SPACE" },
["mapZoomIn"] = { "Zoom in", "+" },
["mapZoomOut"] = { "Zoom out", "-" },
["createMarker"] = { "Create Marker", "M" },
["constant_producer"] = { "Constant Producer", "H" },
["goal_acceptor"] = { "Goal Acceptor", "N" },
["block"] = { "Block", "4" },
["belt"] = { "Conveyor Belt", "1" },
["balancer"] = { "Balancer", "2" },
["underground_belt"] = { "Tunnel", "3" },
["miner"] = { "Extractor", "4" },
["cutter"] = { "Cutter", "5" },
["rotator"] = { "Rotator", "6" },
["stacker"] = { "Stacker", "7" },
["mixer"] = { "Color Mixer", "8" },
["painter"] = { "Painter", "9" },
["trash"] = { "Trash", "0" },
["item_producer"] = { "Item Producer (Sandbox)", "L" },
["storage"] = { "Storage", "Y" },
["reader"] = { "Belt Reader", "U" },
["lever"] = { "Switch", "I" },
["filter"] = { "Filter", "O" },
["display"] = { "Display", "P" },
["wire"] = { "Wire", "1" },
["wire_tunnel"] = { "Wire Crossing", "2" },
["constant_signal"] = { "Constant Signal", "3" },
["logic_gate"] = { "Logic Gate", "4" },
["virtual_processor"] = { "Virtual Cutter", "5" },
["analyzer"] = { "Shape Analyzer", "6" },
["comparator"] = { "Compare", "7" },
["transistor"] = { "Transistor", "8" },
["pipette"] = { "Pipette", "Q" },
["rotateWhilePlacing"] = { "Rotate", "R" },
["rotateInverseModifier"] = { "Modifier: Rotate CCW instead", "⇪" },
["rotateToUp"] = { "Rotate: Point Up", "⬆" },
["rotateToDown"] = { "Rotate: Point Down", "⬇" },
["rotateToRight"] = { "Rotate: Point Right", "➡" },
["rotateToLeft"] = { "Rotate: Point Left", "⬅" },
["cycleBuildingVariants"] = { "Cycle Variants", "T" },
["cycleBuildings"] = { "Cycle Buildings", "TAB" },
["switchDirectionLockSide"] = { "Planner: Switch side", "R" },
["copyWireValue"] = { "Wires: Copy value below cursor", "Z" },
["massSelectStart"] = { "Hold and drag to start", "CTRL" },
["massSelectSelectMultiple"] = { "Select multiple areas", "⇪" },
["massSelectCopy"] = { "Copy area", "C" },
["massSelectCut"] = { "Cut area", "X" },
["massSelectClear"] = { "Clear belts", "B" },
["confirmMassDelete"] = { "Delete area", "DEL" },
["pasteLastBlueprint"] = { "Paste last blueprint", "V" },
["lockBeltDirection"] = { "Enable belt planner", "⇪" },
["placementDisableAutoOrientation"] = { "Disable automatic orientation", "CTRL" },
["placeMultiple"] = { "Stay in placement mode", "⇪" },
["placeInverse"] = { "Invert automatic belt orientation", "ALT" },
}
return KEYS