From 921c2a29e30db9dbd824bce5adb20596437f39c9 Mon Sep 17 00:00:00 2001 From: Carl Lange Date: Sun, 14 Sep 2025 12:00:28 +0100 Subject: [PATCH 1/7] web: Fix Safari Arrow keys in HTML export and webapp\n\n- Remap Arrow key events with KeyboardEvent.location === 3 (numpad) to location: 0 on WebKit in capture phase\n- Prevent page scrolling on Arrow keys while canvas is focused\n- Ensure canvas is focusable (tabindex=0) and focused on start\n\nThis addresses Safari/WebKit misclassification of physical Arrow keys so games receive directional input correctly. --- build/html/export.html | 61 ++++++++++++++++++++++++++++++++++++++++- build/html/index.html | 59 ++++++++++++++++++++++++++++++++++++++- build/webapp/index.html | 55 +++++++++++++++++++++++++++++++++++++ 3 files changed, 173 insertions(+), 2 deletions(-) diff --git a/build/html/export.html b/build/html/export.html index 527603a47..565a3ed66 100644 --- a/build/html/export.html +++ b/build/html/export.html @@ -28,12 +28,67 @@ - + diff --git a/build/html/index.html b/build/html/index.html index fa4c77659..d803827a6 100644 --- a/build/html/index.html +++ b/build/html/index.html @@ -31,7 +31,7 @@ - +