Skip to content

fix: escape field IDs in hotkey scopes - #161

Open
feritcemkahraman wants to merge 1 commit into
github:mainfrom
feritcemkahraman:fix/escape-scoped-field-ids
Open

feritcemkahraman wants to merge 1 commit into
github:mainfrom
feritcemkahraman:fix/escape-scoped-field-ids

Conversation

@feritcemkahraman

Copy link
Copy Markdown

Scoped hotkeys stop working when a form field's ID contains a quote or backslash. Quotes throw a selector SyntaxError; backslashes change the scope being matched.

Escape the ID when building the scope selector. Both regressions failed before the fix; all 102 Chromium tests, full ESLint and TypeScript checks now pass. The compiler/Rollup build also passes with the Unix cleanup hook skipped on Windows. Browser tests used a local config for cached Chromium, IPv4 ports and one worker; Firefox/WebKit were not run.

@feritcemkahraman
feritcemkahraman requested a review from a team as a code owner October 16, 2026 07:12

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant