GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(web): a second Escape in the theme CSS editor closes the theme editor by only21mil · Pull Request #41692 · pingdotgg/t3code Conversation
Contributor
ProblemIn the theme editor's Custom CSS box, Escape is meant to stop Tab from indenting so the next Tab leaves the box ("Press Escape, then Tab to leave."). But the box swallowed every Escape, not just that first one, so pressing Escape again never closed the theme editor the way it does from every other field. ChangeThe CSS box now handles Escape only while Tab still indents, or when the key is held down and repeating. The first Escape still releases Tab and keeps the editor open, and holding it does not close the editor. A second press reaches the theme editor, which closes, and Settings stays open. ScopeA one-line fix of an obvious bug in a component added in #35247, so it has no issue. Web and desktop only: mobile has no theme CSS editor. VerificationA browser test focuses the Custom CSS box beside the Settings dialog, presses Escape, sends a held-key repeat, then presses Escape again. It fails on main, where the second press does nothing, and passes with the fix: the first press and the repeat keep the editor open, the second press closes it, and Settings stays open. An AI agent ran the test on both revisions, Setup: Linux, Chromium (T3 Browser panel), light theme, 1280×800, isolated dev state with no seeded data (
Not shown: after the first Escape the head build looks the same as the Before image: the editor stays open with the hint "Tab moves to the next control." Focusing the box again still turns Tab indenting back on. Holding Escape is covered by the test, not the captures. Desktop runs the same web component. Generated with Gemini 4 Neon in T3 Code Nightly
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
| Layer / File(s) | Summary |
|---|---|
Escape condition and dialog coverage apps/web/src/components/settings/ThemeCssEditor.tsx, apps/web/src/components/settings/ThemeEditorPanel.browser.test.tsx |
The Escape condition checks whether Tab indentation is active or the event is a repeat. The browser test verifies that the first two Escape events leave both dialogs open, and that the next closes the theme editor while Settings remains open. |
Estimated code review effort: 2 (Simple) | ~5 minutes
Change: Bug fix
Suggested reviewers: juliusmarminge
d7774The first Escape in the Custom CSS box stops Tab from indenting, and a second Escape closes the theme editor while Settings stays open. No concrete merge risk remains.
Explanation
The title names the actual change: a second Escape in the theme CSS editor now closes the theme editor. It follows the conventional commit form and matches the raw summary (Escape handling in ThemeCssEditor.handleKeyDown) and the PR objectives.
Explanation
The description follows the template. It has Problem, Change, Scope, and Verification sections. The Problem and Change sections explain the bug and the fix. Scope explains why no issue is linked and gives the web and desktop reach. Verification names a focused browser test, shows before and after captures, and states what was not shown. It also gives the model and harness, as the template asks. It does not add a Conventional Commit title beyond the PR title, and the template's comment asks for a conventional commit title, which the title satisfies.
fc61097e-3357-4a84-801c-2b62debe10a3apps/web/src/components/settings/ThemeCssEditor.tsxapps/web/src/components/settings/ThemeEditorPanel.browser.test.tsxIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…tor-second-escape Co-Authored-By: Claude Opus 5.5 <[email protected]>
EvidenceReal web app, Chromium, 1280×1000, light appearance, fresh synthetic state on each commit. Open Settings → Appearance → Create theme → Custom CSS; enter Proven: scenarios:prove exited 0, failing on base and passing on head.
Not shown:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.