mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-03 06:35:21 +01:00
merge: staging (e2abe038) into pr/brush
Staging took in about 27 pull requests on 25.11. One conflict: - tests/unit/CMakeLists.txt: the editorScatter.cpp of this branch and the Camera.cpp of #474 (test_camera.cpp), both added after editorHttp.cpp. Both kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QRgQ1HXT7zwFMzhMEKcksM
This commit is contained in:
@@ -7426,7 +7426,12 @@ void editor_mode::on_key(int const Key, int const Scancode, int const Action, in
|
||||
}
|
||||
if (is_press(Action))
|
||||
{
|
||||
// in the road window the first Esc gives up the road being drawn, the next one goes back to the selection
|
||||
auto const &road{m_roadtool};
|
||||
auto const next{editor_road::tool_after_escape(road.tool, road.chain || road.branchroad != nullptr || road.branchjunction != nullptr, road.lifting)};
|
||||
road_cancel();
|
||||
if (road.window && ui()->mode() != nodebank_panel::TRACK)
|
||||
road_choose_tool(next);
|
||||
}
|
||||
// the first Esc drops what is going on in the track mode, the next one goes back to the selection
|
||||
if (is_press(Action) && ui()->mode() == nodebank_panel::TRACK)
|
||||
|
||||
Reference in New Issue
Block a user