mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-27 23:57:09 +01:00
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
361 KiB
361 KiB