commit 151bf26765beff011a7bd3e7997a2aa2149bb768
parent 7797055a5d51eebff5320af1a1a7a00df66a8f3f
Author: anon <anon@example.com>
Date: Sat, 24 Oct 2026 18:16:14 +0000
Preserve queued mouse modifiers without rewriting SDL state
Diffstat:
5 files changed, 212 insertions(+), 25 deletions(-)
diff --git a/TODO.md b/TODO.md
@@ -1207,12 +1207,23 @@ and server restarts. Turn every reproduced bug into a focused regression test.
Kick removes both pair members and their Team channels. CCR timing is
unchanged; this does not attribute earlier misses to the wakeup defect.
Evidence: `local/input-timing-research/native-timing-held-final.json`.
- Also cover Ctrl-down/click/Ctrl-up in one queued SDL batch, verifying both
- mouse flags and per-message keyboard state, plus rapid Enter/text batching.
+ Queued Ctrl/Shift mouse modifiers now have focused coverage below; rapid
+ Enter/text batching and the broader native frame audit remain open.
The hardware XP run also saw a 150ms left click leave the Wear/Clothes tab
unchanged, while a 1500ms held click at the same location switched it. Measure
native frames and queued input/focus transitions before attributing the miss.
Captures: `local/kill-experience-smoke/clothes-window.png` and `clothes-view.png`.
+ The modifier-fix smoke split a three-charge Essence, but subsequent zero/150ms
+ Ctrl-clicks on the resulting two-charge stack produced no split request.
+ Counts remained one plus two across reconnects. Retain the DOM/native/SQLite
+ comparison and measure native frames before assigning a cause; see
+ `local/mouse-modifier-smoke/verification.json` and `rapid-dom.json`.
+- [x] Preserve mouse modifiers across a queued SDL keyboard/mouse batch. Check:
+ Ctrl/Shift down, motion/click/wheel and modifier up retain the event's flags
+ and guest keyboard snapshot; filtered/non-removing reads and focus loss behave
+ correctly. Delivering an old Win32 message must not rewrite SDL's physical
+ modifier state. Actual WASM regressions reproduce both failures and pass with
+ separate queued/delivered snapshots. See [native equipment input](docs/native-equipment-input.md#queued-mouse-modifiers).
- [x] Keep browser message-loop wakeups out of native text input. Check:
`PostMessageA` and `PostQuitMessage` produce their requested messages without
spurious `WM_CHAR` NUL; explicit composed slash and NUL remain intact.
diff --git a/client/runtime/linux_window.c b/client/runtime/linux_window.c
@@ -42,6 +42,7 @@ static int quit_pending;
static uint32_t quit_code;
static uint8_t keyboard_state[256];
static uint32_t queued_mouse_buttons;
+static SDL_Keymod queued_modifiers, keyboard_modifiers;
#ifdef __EMSCRIPTEN__
/* Browsers cannot warp the physical pointer; camera recentering is virtual. */
static int cursor_x, cursor_y, cursor_warped;
@@ -427,6 +428,7 @@ static void create_window(int wide)
SDL_SetWindowSize(window, client.width, client.height);
client.class = c;
client.handle = next_handle++;
+ queued_modifiers = keyboard_modifiers = SDL_GetModState();
client.style = 0x04c00000u; /* Implicit WS_CAPTION and WS_CLIPSIBLINGS for style zero. */
/* Win32's 32-bit CREATESTRUCT, RECT and MINMAXINFO live in guest memory. */
@@ -809,8 +811,8 @@ static void key_state(void)
else if (key == 0x11) mask = KMOD_CTRL;
else if (key == 0x12) mask = KMOD_ALT;
else { unsupported("virtual key", key); return; }
- /* Read the cached modifier snapshot without pumping later input events. */
- g_eax = SDL_GetModState() & mask ? 0xffffff80u : 0;
+ /* Read the removed message's snapshot without changing SDL's physical state. */
+ g_eax = keyboard_modifiers & mask ? 0xffffff80u : 0;
g_esp += 8;
}
@@ -1032,6 +1034,7 @@ static void process_event(const SDL_Event *event)
}
break;
case SDL_WINDOWEVENT_FOCUS_LOST:
+ queued_modifiers = KMOD_NONE;
#ifdef __EMSCRIPTEN__
static const uint32_t releases[][2] = {{1, 0x202}, {2, 0x205}, {16, 0x208}};
for (unsigned i = 0; i < 3; ++i) {
@@ -1060,6 +1063,8 @@ static void process_event(const SDL_Event *event)
break;
}
} else if (event->type == SDL_KEYDOWN || event->type == SDL_KEYUP) {
+ // Mouse events follow this snapshot, even when SDL has already queued a release.
+ queued_modifiers = event->key.keysym.mod;
unsigned scan = 0;
uint32_t key = virtual_key(event->key.keysym.sym, &scan);
if (!key) return;
@@ -1082,7 +1087,7 @@ static void process_event(const SDL_Event *event)
}
#endif
queued_mouse_buttons = state;
- SDL_Keymod modifiers = SDL_GetModState();
+ SDL_Keymod modifiers = queued_modifiers;
state |= modifiers & KMOD_SHIFT ? 4 : 0;
state |= modifiers & KMOD_CTRL ? 8 : 0;
int input = 2;
@@ -1090,7 +1095,7 @@ static void process_event(const SDL_Event *event)
if (event->motion.which == SDL_TOUCH_MOUSEID) input = 3;
#endif
queue_message(client.handle, 0x200, state,
- (event->motion.x & 0xffffu) | ((uint32_t)event->motion.y << 16), input, 0);
+ (event->motion.x & 0xffffu) | ((uint32_t)event->motion.y << 16), input, modifiers);
} else if (event->type == SDL_MOUSEBUTTONDOWN || event->type == SDL_MOUSEBUTTONUP) {
uint32_t button = event->button.button, message, mask;
if (button == SDL_BUTTON_LEFT) { message = 0x201; mask = 1; }
@@ -1100,7 +1105,7 @@ static void process_event(const SDL_Event *event)
int up = event->type == SDL_MOUSEBUTTONUP;
queued_mouse_buttons = up ? queued_mouse_buttons & ~mask : queued_mouse_buttons | mask;
uint32_t state = queued_mouse_buttons;
- SDL_Keymod modifiers = SDL_GetModState();
+ SDL_Keymod modifiers = queued_modifiers;
state |= modifiers & KMOD_SHIFT ? 4 : 0;
state |= modifiers & KMOD_CTRL ? 8 : 0;
int input = 2;
@@ -1108,7 +1113,7 @@ static void process_event(const SDL_Event *event)
if (event->button.which == SDL_TOUCH_MOUSEID) input = 3;
#endif
queue_message(client.handle, message + up, state,
- (event->button.x & 0xffffu) | ((uint32_t)event->button.y << 16), input, 0);
+ (event->button.x & 0xffffu) | ((uint32_t)event->button.y << 16), input, modifiers);
} else if (event->type == SDL_MOUSEWHEEL) {
#ifdef __EMSCRIPTEN__
static float remainder;
@@ -1116,19 +1121,19 @@ static void process_event(const SDL_Event *event)
int delta = (int)movement;
remainder = movement - delta;
if (!delta) return;
- uint32_t state = queued_mouse_buttons | (SDL_GetModState() & KMOD_SHIFT ? 4 : 0) |
- (SDL_GetModState() & KMOD_CTRL ? 8 : 0);
+ uint32_t state = queued_mouse_buttons | (queued_modifiers & KMOD_SHIFT ? 4 : 0) |
+ (queued_modifiers & KMOD_CTRL ? 8 : 0);
queue_message(client.handle, 0x20a, ((uint32_t)delta << 16) | state,
- (event->wheel.mouseX & 0xffffu) | ((uint32_t)event->wheel.mouseY << 16), 3, 0);
+ (event->wheel.mouseX & 0xffffu) | ((uint32_t)event->wheel.mouseY << 16), 3, queued_modifiers);
#else
int x, y;
SDL_GetGlobalMouseState(&x, &y);
int delta = event->wheel.y * 120;
if (event->wheel.direction == SDL_MOUSEWHEEL_FLIPPED) delta = -delta;
- uint32_t state = queued_mouse_buttons | (SDL_GetModState() & KMOD_SHIFT ? 4 : 0) |
- (SDL_GetModState() & KMOD_CTRL ? 8 : 0);
+ uint32_t state = queued_mouse_buttons | (queued_modifiers & KMOD_SHIFT ? 4 : 0) |
+ (queued_modifiers & KMOD_CTRL ? 8 : 0);
queue_message(client.handle, 0x20a, ((uint32_t)delta << 16) | state,
- (x & 0xffffu) | ((uint32_t)y << 16), 2, 0);
+ (x & 0xffffu) | ((uint32_t)y << 16), 2, queued_modifiers);
#endif
}
}
@@ -1146,8 +1151,9 @@ static int read_message(uint32_t output, uint32_t window, uint32_t first, uint32
if (remove) {
if (entry->keyboard == 1) {
keyboard_state[entry->words[2]] = message & 1 ? 0 : 0x80;
- SDL_SetModState(entry->modifiers);
+ keyboard_modifiers = entry->modifiers;
} else if (entry->keyboard == 2 || entry->keyboard == 3) {
+ keyboard_modifiers = entry->modifiers;
keyboard_state[1] = entry->words[2] & 1 ? 0x80 : 0;
keyboard_state[2] = entry->words[2] & 2 ? 0x80 : 0;
keyboard_state[4] = entry->words[2] & 16 ? 0x80 : 0;
@@ -1284,7 +1290,7 @@ static void translate_message(void)
g_esp += 8;
g_eax = message == 0x100 || message == 0x101 || message == 0x104 || message == 0x105;
if (message != 0x100 && message != 0x104) return;
- SDL_Keymod modifiers = SDL_GetModState();
+ SDL_Keymod modifiers = keyboard_modifiers;
int character = key_character(key, !!(modifiers & KMOD_SHIFT), !!(modifiers & KMOD_CTRL),
!!(modifiers & KMOD_ALT), !!(modifiers & KMOD_CAPS));
if (character >= 0) queue_message(MEM32(record), message == 0x104 ? 0x106 : 0x102,
@@ -1294,7 +1300,7 @@ static void translate_message(void)
static void get_keyboard_state(void)
{
uint32_t output = MEM32(g_esp + 4);
- SDL_Keymod modifiers = SDL_GetModState();
+ SDL_Keymod modifiers = keyboard_modifiers;
keyboard_state[16] = modifiers & KMOD_SHIFT ? 0x80 : 0;
keyboard_state[17] = modifiers & KMOD_CTRL ? 0x80 : 0;
keyboard_state[18] = modifiers & KMOD_ALT ? 0x80 : 0;
diff --git a/client/tests/browser_camera.c b/client/tests/browser_camera.c
@@ -70,14 +70,17 @@ static void recentering_preserves_relative_motion(void)
static void control_left_click_keeps_its_native_button(void)
{
- SDL_SetModState(KMOD_CTRL);
+ browser_input_key(SDLK_LCTRL, 1, 0, KMOD_LCTRL);
+ uint32_t peek[] = {0x50003000, window, 0x100, 0x101, 1};
+ assert(call("PeekMessageA", 5, peek));
SDL_Event event = {.type = SDL_MOUSEBUTTONDOWN};
event.button.button = SDL_BUTTON_LEFT;
assert(SDL_PushEvent(&event) == 1);
assert(mouse_message() == 0x201);
assert(MEM32(0x50003008) == 9);
- SDL_SetModState(KMOD_NONE);
+ browser_input_key(SDLK_LCTRL, 0, 0, 0);
+ assert(call("PeekMessageA", 5, peek));
event.type = SDL_MOUSEBUTTONUP;
assert(SDL_PushEvent(&event) == 1);
@@ -86,6 +89,118 @@ static void control_left_click_keeps_its_native_button(void)
assert(!mouse_message());
}
+static void queued_mouse_input_keeps_its_modifiers(void)
+{
+ static const struct { SDL_Keycode key; SDL_Keymod modifiers; uint32_t flag, code; } cases[] = {
+ {SDLK_LCTRL, KMOD_LCTRL, 8, 17}, {SDLK_RCTRL, KMOD_RCTRL, 8, 17},
+ {SDLK_LSHIFT, KMOD_LSHIFT, 4, 16}, {SDLK_RSHIFT, KMOD_RSHIFT, 4, 16},
+ };
+ uint32_t output = 0x50003000, state = 0x50003100;
+ uint32_t peek[] = {output, window, 0, 0, 1};
+ for (unsigned i = 0; i < sizeof(cases) / sizeof(cases[0]); ++i) {
+ browser_input_key(cases[i].key, 1, 0, cases[i].modifiers);
+ browser_input_motion(100, 20);
+ browser_input_button(SDL_BUTTON_LEFT, 1, 100, 20);
+ browser_input_button(SDL_BUTTON_LEFT, 0, 100, 20);
+ browser_input_wheel(100, 20, 1);
+ browser_input_key(cases[i].key, 0, 0, 0);
+ browser_input_motion(180, 60);
+ // SDL callbacks have already released the physical modifier before this drain.
+ SDL_SetModState(KMOD_NONE);
+
+ assert(call("PeekMessageA", 5, peek) && MEM32(output + 4) == 0x100);
+ assert(call("GetKeyboardState", 1, &state) && MEM8(state + cases[i].code) == 0x80);
+ assert(SDL_GetModState() == KMOD_NONE);
+ assert(call("PeekMessageA", 5, peek) && MEM32(output + 4) == 0x200);
+ assert(MEM32(output + 8) == cases[i].flag);
+ assert(call("PeekMessageA", 5, peek) && MEM32(output + 4) == 0x201);
+ assert(MEM32(output + 8) == (1 | cases[i].flag));
+ assert(call("GetKeyboardState", 1, &state) && MEM8(state + cases[i].code) == 0x80);
+ assert(call("PeekMessageA", 5, peek) && MEM32(output + 4) == 0x202);
+ assert(MEM32(output + 8) == cases[i].flag);
+ assert(call("PeekMessageA", 5, peek) && MEM32(output + 4) == 0x20a);
+ assert(MEM32(output + 8) == (120 << 16 | cases[i].flag));
+ assert(call("PeekMessageA", 5, peek) && MEM32(output + 4) == 0x101);
+ assert(call("GetKeyboardState", 1, &state) && !MEM8(state + cases[i].code));
+ assert(call("PeekMessageA", 5, peek) && MEM32(output + 4) == 0x200);
+ assert(!MEM32(output + 8));
+ assert(!call("PeekMessageA", 5, peek));
+ }
+}
+
+static void filtered_mouse_read_restores_its_modifier_snapshot(void)
+{
+ uint32_t output = 0x50003000, state = 0x50003100;
+ uint32_t mouse[] = {output, window, 0x200, 0x20a, 0};
+ uint32_t keys[] = {output, window, 0x100, 0x105, 1};
+
+ browser_input_key(SDLK_LCTRL, 1, 0, KMOD_LCTRL | KMOD_LSHIFT | KMOD_LALT | KMOD_CAPS | KMOD_NUM);
+ browser_input_button(SDL_BUTTON_RIGHT, 1, 100, 20);
+ browser_input_button(SDL_BUTTON_RIGHT, 0, 100, 20);
+ browser_input_key(SDLK_LCTRL, 0, 0, 0);
+ SDL_SetModState(KMOD_NONE);
+
+ assert(call("PeekMessageA", 5, mouse) && MEM32(output + 8) == 14);
+ assert(call("GetKeyboardState", 1, &state) && !MEM8(state + 17));
+ mouse[4] = 1;
+ assert(call("PeekMessageA", 5, mouse) && MEM32(output + 4) == 0x204);
+ assert(call("GetKeyboardState", 1, &state) && MEM8(state + 17) == 0x80);
+ assert(MEM8(state + 16) == 0x80 && MEM8(state + 18) == 0x80);
+ assert(MEM8(state + 20) == 1 && MEM8(state + 0x90) == 1);
+ assert(MEM8(state + 2) == 0x80);
+ assert(call("PeekMessageA", 5, mouse) && MEM32(output + 4) == 0x205);
+ assert(MEM32(output + 8) == 12);
+ assert(call("GetKeyboardState", 1, &state) && MEM8(state + 17) == 0x80);
+ assert(!MEM8(state + 2));
+ assert(!call("PeekMessageA", 5, mouse));
+ assert(call("PeekMessageA", 5, keys) && MEM32(output + 4) == 0x104);
+ assert(call("PeekMessageA", 5, keys) && MEM32(output + 4) == 0x101);
+ assert(call("GetKeyboardState", 1, &state) && !MEM8(state + 17));
+ assert(!MEM8(state + 16) && !MEM8(state + 18) && !MEM8(state + 20) && !MEM8(state + 0x90));
+ assert(!call("PeekMessageA", 5, keys));
+}
+
+static void focus_loss_clears_queued_mouse_modifiers(void)
+{
+ uint32_t output = 0x50003000, state = 0x50003100;
+ uint32_t keys[] = {output, window, 0x100, 0x101, 1};
+ SDL_Event event = {.type = SDL_WINDOWEVENT};
+ event.window.windowID = SDL_GetWindowID(native_window);
+ event.window.event = SDL_WINDOWEVENT_FOCUS_LOST;
+
+ browser_input_key(SDLK_LSHIFT, 1, 0, KMOD_LSHIFT);
+ browser_input_button(SDL_BUTTON_LEFT, 1, 100, 20);
+ assert(SDL_PushEvent(&event) == 1);
+ browser_input_motion(180, 60);
+
+ assert(call("PeekMessageA", 5, keys));
+ assert(mouse_message() == 0x201 && MEM32(output + 8) == 5);
+ assert(mouse_message() == 0x202 && !MEM32(output + 8));
+ assert(call("GetKeyboardState", 1, &state) && !MEM8(state + 16) && !MEM8(state + 1));
+ assert(mouse_message() == 0x200 && !MEM32(output + 8));
+ assert(!mouse_message());
+ browser_input_key(SDLK_LSHIFT, 0, 0, 0);
+ assert(call("PeekMessageA", 5, keys));
+}
+
+static void character_translation_uses_the_removed_key_snapshot(void)
+{
+ uint32_t output = 0x50003000;
+ uint32_t peek[] = {output, window, 0, 0, 1};
+
+ browser_input_key(SDLK_a, 1, 0, KMOD_LSHIFT);
+ browser_input_key(SDLK_a, 0, 0, 0);
+ SDL_SetModState(KMOD_NONE);
+
+ assert(call("PeekMessageA", 5, peek) && MEM32(output + 4) == 0x100);
+ assert(call("TranslateMessage", 1, &output));
+ assert(SDL_GetModState() == KMOD_NONE);
+ assert(call("PeekMessageA", 5, peek) && MEM32(output + 4) == 0x101);
+ assert(call("PeekMessageA", 5, peek) && MEM32(output + 4) == 0x102);
+ assert(MEM32(output + 8) == 'A');
+ assert(!call("PeekMessageA", 5, peek));
+}
+
static void focus_loss_releases_camera_button(void)
{
SDL_Event event = {.type = SDL_MOUSEBUTTONDOWN};
@@ -110,7 +225,9 @@ static void focus_loss_releases_camera_button(void)
static void native_ui_wheel_preserves_position_and_modifiers(void)
{
- SDL_SetModState(KMOD_CTRL);
+ browser_input_key(SDLK_LCTRL, 1, 0, KMOD_LCTRL);
+ uint32_t peek[] = {0x50003000, window, 0x100, 0x101, 1};
+ assert(call("PeekMessageA", 5, peek));
uint32_t output = 0x50003100;
browser_input_wheel(600, 100, -1.25f);
@@ -122,7 +239,8 @@ static void native_ui_wheel_preserves_position_and_modifiers(void)
assert(MEM32(0x5000300c) == (600 | (100 << 16)));
assert(MEM32(output) == 600 && MEM32(output + 4) == 100);
assert(!mouse_message());
- SDL_SetModState(KMOD_NONE);
+ browser_input_key(SDLK_LCTRL, 0, 0, 0);
+ assert(call("PeekMessageA", 5, peek));
}
static void queued_wheels_keep_their_captured_points(void)
@@ -367,6 +485,10 @@ int main(void)
SDL_FlushEvents(SDL_FIRSTEVENT, SDL_LASTEVENT);
recentering_preserves_relative_motion();
control_left_click_keeps_its_native_button();
+ queued_mouse_input_keeps_its_modifiers();
+ filtered_mouse_read_restores_its_modifier_snapshot();
+ focus_loss_clears_queued_mouse_modifiers();
+ character_translation_uses_the_removed_key_snapshot();
focus_loss_releases_camera_button();
native_ui_wheel_preserves_position_and_modifiers();
queued_wheels_keep_their_captured_points();
diff --git a/client/tests/window.c b/client/tests/window.c
@@ -609,7 +609,9 @@ static void modifier_queries_combine_left_and_right_keys(void)
BYTE original[256], state[256] = {0};
assert(GetKeyboardState(original));
#else
- SDL_Keymod original = SDL_GetModState();
+ uint32_t window = call("CreateWindowExA", 12, args);
+ SDL_FlushEvents(SDL_FIRSTEVENT, SDL_LASTEVENT);
+ uint32_t peek[] = {workspace() + 512, window, 0x100, 0x105, 1};
const SDL_Keymod modifiers[] = {KMOD_LSHIFT, KMOD_RSHIFT, KMOD_LCTRL, KMOD_RCTRL, KMOD_LALT, KMOD_RALT};
#endif
for (unsigned pressed = 0; pressed < 64; ++pressed) {
@@ -621,7 +623,11 @@ static void modifier_queries_combine_left_and_right_keys(void)
#else
SDL_Keymod state = KMOD_NONE;
for (unsigned i = 0; i < 6; ++i) if (pressed & (1u << i)) state |= modifiers[i];
- SDL_SetModState(state);
+ SDL_Event event = {.type = SDL_KEYUP};
+ event.key.keysym.sym = SDLK_w;
+ event.key.keysym.mod = state;
+ assert(SDL_PushEvent(&event) == 1);
+ assert(call("PeekMessageA", 5, peek));
#endif
uint32_t key = 0x10, shift = call("GetKeyState", 1, &key);
@@ -637,7 +643,7 @@ static void modifier_queries_combine_left_and_right_keys(void)
#ifdef _WIN32
assert(SetKeyboardState(original));
#else
- SDL_SetModState(original);
+ assert(call("DestroyWindow", 1, &window));
#endif
}
@@ -931,6 +937,7 @@ int main(void)
sdl_keyboard_and_mouse_reach_guest_messages();
#endif
mouse_capture_reports_ownership_and_releases_on_destruction();
+ modifier_queries_combine_left_and_right_keys();
class_release_invalidates_its_atom();
}
wide = 0;
@@ -939,7 +946,6 @@ int main(void)
cursor_query_writes_a_guest_point();
cursor_warp_updates_screen_coordinates();
null_cursor_hides_and_previous_cursor_can_be_restored();
- modifier_queries_combine_left_and_right_keys();
#ifndef _WIN32
screensaver_inhibition_is_process_scoped();
#endif
diff --git a/docs/native-equipment-input.md b/docs/native-equipment-input.md
@@ -71,6 +71,48 @@ ordinary click, adding AC 281/246/281/211/42/42/42/42, and returned to inventory
with zero AC on removal. Repeat equip/remove also passed. These native-game
checks retain all eight fixture identities and their authored endpoint data.
+## Queued mouse modifiers
+
+The window adapter tracks two modifier snapshots: the SDL event currently being
+converted and the Win32 message most recently removed. Mouse motion, buttons and
+wheel messages capture the first snapshot; `GetKeyState`, `GetKeyboardState` and
+`TranslateMessage` use the second. Reading a message does not change SDL's physical
+keyboard state. Focus loss clears the queued mouse modifiers.
+
+Sampling `SDL_GetModState` while draining an entire SDL batch loses Ctrl or Shift
+when their release is already queued after the click. Restoring old snapshots
+through `SDL_SetModState` also rewrites the physical state used for later input.
+The real WASM fixture reproduces both defects before the corresponding fixes.
+
+`client/tests/browser_camera.c` covers left/right Ctrl and Shift around motion,
+press/release and wheel events in one queued batch. Filtered mouse reads retain
+Ctrl/Shift/Alt/Caps/Num without consuming keyboard messages; a non-removing peek
+does not update the guest keyboard state. Removed messages restore their own
+snapshot, and focus loss releases held mouse buttons without stuck modifiers.
+The native window fixture checks all 64 combinations of left/right modifier
+keys through queued SDL input. The full native client suite, WASM camera/input
+fixture and 73 browser-control tests pass. Captures and logs are retained under
+`local/mouse-modifier-smoke/`.
+
+The rebuilt full game was tested in headed hardware Chromium on the shared
+HTTPS preview. A physical Ctrl-left-click split a three-charge Essence into
+one and two; both native instances and SQLite quantities survived two page
+reconnects. Mixed-case `QueueMix` chat reached the server and returned through
+chat, Tab selected two distinct native targets while the canvas retained focus,
+and ordinary movement remained usable after modifier release. No browser or
+adapter errors were captured. The served WASM matched the published bundle.
+
+Further attempts to split the resulting two-charge stack, with zero and 150ms
+button duration, produced no split request. Quantities and identities remained
+unchanged. The zero-duration DOM trace retains Ctrl-down, press/release and
+Ctrl-up within three milliseconds; native frame timing was not measured.
+These misses remain part of the input audit rather than evidence that the
+modifier fix resolves all rapid native actions. The owned visitor and its two
+items were removed with all other database rows preserved.
+
+This fixes modifier delivery. It does not resolve the original CCR same-frame
+hotspot behavior or establish the cause of earlier short-click misses.
+
## Repeating the audit
Use the single normal HTTPS preview and owned visitors. Capture the inventory