-- Quick-editing keys for the current selection: height nudging (Vertex -- mode) and flat/gradient toggling (Hex mode). Same app.subscribe shape as -- editor_mode.lua; editor.nudge_height/toggle_flat each no-op in the wrong -- mode, so this doesn't need to check current mode itself. local HEIGHT_STEP = 0.1 app.subscribe("engine.key", function(source, key, action, mods) if action ~= PRESS then return end if key == KEY_EQUAL then editor.nudge_height(HEIGHT_STEP) elseif key == KEY_MINUS then editor.nudge_height(-HEIGHT_STEP) elseif key == KEY_F then editor.toggle_flat() end end)