[GH-ISSUE #8314] fix(shortcuts): preserve question marks typed inside package shadow roots #8243

Closed
opened 2026-10-26 04:03:41 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8314

Originally assigned to: @SpicyMarinara on GitHub.

Problem

When typing a question mark in Gacha Forge's character-message field on a phone in landscape, Engine opens the global keyboard-shortcuts dialog instead of inserting ? into the message.

The field is inside the marinara-capability-gacha-forge shadow root. Engine's global help listener checks only event.target, which is retargeted to the custom element rather than the editable field. The existing editable-field predicate should also inspect the event's composed path.

Expected behavior

  • Typing ? in an input, textarea or content-editable field, including package shadow roots, inserts punctuation and leaves the help dialog closed.
  • Pressing ? outside an editable field still opens keyboard shortcuts.
  • Other shortcuts keep their current behavior.

Owner: @SpicyMarinara / Codex (/root/docs_western_8303). This is an Engine host fix; no Gacha Forge package change is planned. Focused mobile Chromium/WebKit landscape regressions will retain the original negative result and verify both typing and the outside-field shortcut.

Originally created by @SpicyMarinara on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8314 Originally assigned to: @SpicyMarinara on GitHub. ## Problem When typing a question mark in Gacha Forge's character-message field on a phone in landscape, Engine opens the global keyboard-shortcuts dialog instead of inserting `?` into the message. The field is inside the `marinara-capability-gacha-forge` shadow root. Engine's global help listener checks only `event.target`, which is retargeted to the custom element rather than the editable field. The existing editable-field predicate should also inspect the event's composed path. ## Expected behavior - Typing `?` in an input, textarea or content-editable field, including package shadow roots, inserts punctuation and leaves the help dialog closed. - Pressing `?` outside an editable field still opens keyboard shortcuts. - Other shortcuts keep their current behavior. Owner: @SpicyMarinara / Codex (`/root/docs_western_8303`). This is an Engine host fix; no Gacha Forge package change is planned. Focused mobile Chromium/WebKit landscape regressions will retain the original negative result and verify both typing and the outside-field shortcut.
bsakaguchi 2026-10-26 04:03:41 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#8243
No description provided.