From 64259ea15bd4faafc8de35c7d227a47b3fa41dbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20M=C3=BCller?= Date: Sat, 7 Nov 2026 19:32:45 +0100 Subject: [PATCH] fly key capture lets shift, ctrl and alt through, so the play-here crosshair no longer sticks after flying fast --- docs/manual/18-mods.md | 6 ++++++ .../com/eliasmueller/llamamod/editor/render/Viewport.java | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/manual/18-mods.md b/docs/manual/18-mods.md index 406c294..b07ef47 100644 --- a/docs/manual/18-mods.md +++ b/docs/manual/18-mods.md @@ -144,6 +144,12 @@ Turns the hidden TestLevel (world 9, chapter 1) into a playground island: a gall *Id* `testworld` +#### Village Chapter 1 (play-test) + +Temporary play-test copy from the level editor – removed when the play-test ends. Changes the original level t1l1m001. + +*Id* `playtest-village-chapter-1` + ### Gameplay mods #### Boot to level diff --git a/src/main/java/com/eliasmueller/llamamod/editor/render/Viewport.java b/src/main/java/com/eliasmueller/llamamod/editor/render/Viewport.java index 991b78c..21e45e1 100644 --- a/src/main/java/com/eliasmueller/llamamod/editor/render/Viewport.java +++ b/src/main/java/com/eliasmueller/llamamod/editor/render/Viewport.java @@ -110,7 +110,9 @@ public final class Viewport extends JPanel { } else if (e.getID() == KeyEvent.KEY_RELEASED) { keys.remove(e.getKeyCode()); } - return true; + // modifiers pass on (others track Shift, e.g. the play-here crosshair); typed keys do not + int k = e.getKeyCode(); + return k != KeyEvent.VK_SHIFT && k != KeyEvent.VK_CONTROL && k != KeyEvent.VK_ALT && k != KeyEvent.VK_META; }; @Override