18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-27 21:45:16 +01:00
Files
maszyna/application
jerrrrycho fa13d4b4a2 fix(editor): Esc in the road window goes back to the select tool when nothing is being drawn (#487)
Esc in the road window only called road_cancel(), which gives up the road
being drawn but never changes the tool, so with the build or place tool
chosen every Esc left that tool in use and the next click started another
road. Now the first Esc still gives up the road being drawn (or led out of
a road or a junction, or the Alt+drag of the heights) and keeps the tool;
with nothing going on Esc switches to the select tool, the way the first
and the next Esc work in the track field of work.

The decision is editor_road::tool_after_escape(), covered by unit tests.

Fixes #348
2026-11-25 05:15:40 +01:00
..