mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8315] [MERGED] fix(shortcuts): preserve typing inside package shadow roots #8269
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8269
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8315
Author: @SpicyMarinara
Created: 10/25/2026
Status: ✅ Merged
Merged: 10/25/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/8314-shadow-typing-shortcuts📝 Commits (4)
1179e56test(shortcuts): cover typing punctuation across package shadow roots9daed53test(shortcuts): use the canonical help dialog namead331defix(shortcuts): keep punctuation in shadow-root text editorsb3d90b2test(shortcuts): settle modal focus before typing punctuation📊 Changes
2 files changed (+140 additions, -1 deletions)
View changed files
➕
e2e/keyboard-shortcuts-typing.e2e.ts(+138 -0)📝
packages/client/src/components/layout/GlobalOmnibarHost.tsx(+2 -1)📄 Description
Linked issue
Closes #8314
Owner: @SpicyMarinara / Codex.
Why this change
Typing
?in Gacha Forge's character-message field opens Engine's keyboard-shortcuts dialog and drops the punctuation. Package text fields live in a shadow root, so the global listener receives the package host asevent.targetrather than the editor.What changed
?help shortcut outside editable fields and preserve the existing modifier, composition, repeat and modal guards.This is an Engine host fix; no package patch or new UI copy is required.
Validation
Production source:
ad331de19e4eabbdad847c2b7f9a1d9ae8a9bbe2. Final fixture-only commit:b3d90b25b; production files are unchanged by that commit.PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN=false pnpm checkpassed, including localization, formatting, lint/types and server/client production builds. Workspace dependencies and all five manifest/lockfile bytes were verified before the check; the environment flag disables automatic reinstallation. The existingHomeProfessorMariChat.tsx:380hook warning remains outside this diff.b62d89f: both mobile Chromium and WebKit reproduced the failure. The shadow textarea stayed empty, help opened, the event target was the custom host, its composed path began withTEXTAREA, and the event was prevented. Document input/textarea/content-editable controls accepted punctuation.?without opening help; the outside-field shortcut still opened it.f36a427c6through the ruleset-combat-only #8317. Its two server/regression paths are disjoint from this patch. The local proof above is scoped to the named keyboard candidate; hosted checks validate the current PR merge candidate.The browser cases emulate keyboard input and package shadow roots; they do not establish physical-device keyboard behavior.
?in Gacha Forge character messages using a real phone keyboard in landscape.?opens shortcut help when focus is outside a text field.UI evidence
Before/after browser screenshots and captured event-path proof.
Docs and release impact
No documentation, localization keys, dependencies or release metadata change. This restores the existing documented behavior that shortcut help is ignored while typing.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.