From f2cb866cd592f6baf00d07e469f9ffdc6ca7aeca Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 6 Oct 2026 13:38:12 +0200 Subject: [PATCH] =?UTF-8?q?Fluss-Editor:=20Tastenk=C3=BCrzel=20fehlten=20(?= =?UTF-8?q?Enter,=20Esc,=20Delete,=20Backspace)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit RiverEditorState nutzt dieselben SharedInput-Flags wie der Wasserfall-Editor (finalizeWaterfallRequested, cancelZoneDrawing, deleteWaterfallRequested, undoWaterfallPointRequested), aber LAYER_RIVER fehlte in allen vier Key-Handler-Zweigen in EditorApp.handleKeyPress. Co-Authored-By: Claude Sonnet 4.6 --- .../src/main/java/de/blight/editor/EditorApp.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/blight-editor/src/main/java/de/blight/editor/EditorApp.java b/blight-editor/src/main/java/de/blight/editor/EditorApp.java index 6a76c7c..c1bf148 100644 --- a/blight-editor/src/main/java/de/blight/editor/EditorApp.java +++ b/blight-editor/src/main/java/de/blight/editor/EditorApp.java @@ -962,7 +962,8 @@ public class EditorApp extends Application { case CONTROL -> input.ctrlHeld = pressed; case ALT -> input.altHeld = pressed; case ENTER -> { - if (pressed && input.activeLayer == SharedInput.LAYER_WATERFALL) + if (pressed && (input.activeLayer == SharedInput.LAYER_WATERFALL + || input.activeLayer == SharedInput.LAYER_RIVER)) input.finalizeWaterfallRequested = true; if (pressed && input.activeLayer == SharedInput.LAYER_VOXEL_CLIFF) { input.generateCliffVoxelsRequested = true; @@ -976,7 +977,8 @@ public class EditorApp extends Application { || input.activeLayer == SharedInput.LAYER_ZONEN || input.activeLayer == SharedInput.LAYER_WATER || input.activeLayer == SharedInput.LAYER_WATERFALL - || input.activeLayer == SharedInput.LAYER_VOXEL_CLIFF)) + || input.activeLayer == SharedInput.LAYER_VOXEL_CLIFF + || input.activeLayer == SharedInput.LAYER_RIVER)) input.cancelZoneDrawing = true; else if (pressed && input.activeLayer == SharedInput.LAYER_OBJECTS && "objecteditor".equals(registry.activeToolId())) @@ -1020,6 +1022,9 @@ public class EditorApp extends Application { input.deleteVoxelCliffZoneRequested = true; else if (input.activeLayer == SharedInput.LAYER_WATER) input.deleteWaterRequested = true; + else if (input.activeLayer == SharedInput.LAYER_RIVER + && input.selectedWaterfallInfo != null) + input.deleteWaterfallRequested = true; else if (input.activeLayer == SharedInput.LAYER_WATERFALL && input.selectedWaterfallInfo != null) { Platform.runLater(() -> { @@ -1042,7 +1047,8 @@ public class EditorApp extends Application { } } case BACK_SPACE -> { - if (pressed && input.activeLayer == SharedInput.LAYER_WATERFALL) + if (pressed && (input.activeLayer == SharedInput.LAYER_WATERFALL + || input.activeLayer == SharedInput.LAYER_RIVER)) input.undoWaterfallPointRequested = true; } case SPACE -> {