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 guest link no longer sends a message on the Enter that confirms an IME candidate by spoukyii · Pull Request #30468 · pingdotgg/t3code Conversation
Contributor
ProblemOn a guest link's page, the Enter that confirms an IME candidate in Safari sends the half-typed message to the thread owner. The Enter that confirms a candidate is part of typing and should not send. ChangeThe guest composer's The handler's own comment says it works "Same as the app composer: … IME composition is left alone". The app composer checks both halves ( User-visible surface: the message box on the guest page, in WebKit browsers: Safari on macOS and every browser on iPhone and iPad, which is likely most guests who type with an IME. Chromium and Firefox flag this Enter with Open redesign #28840 edits The same IME fix in other inputs, with no shared files: #30448 (content search), #30449 (preview address bar) and #28277 (publish-repository input). Scope and approvalThis is a very small fix for an obvious bug, and it is the same defect #10262 fixed for the settings inputs and #28298 fixed for the settings search: a key handler that treats the Enter confirming an IME candidate as a submit. #28298's test sends exactly this key, Verification
With the key-consumed assertion taken out, the same run on With the fix:
Run on Windows 11 in Chromium through the Vitest browser runner. A real guest link could not be made here: links need Settings > Labs > Guest links and a running T3 Connect tunnel (the server builds them as
The "Expired" label in the header comes from the fixture's share, not from this change. With a share open on a T3 Connect-linked server, the same three events dispatched from devtools on the focused Message box show it in the real app. I could not check this in Safari or on an iPhone with a real IME. Bug: Enter that confirms an IME candidate in Safari sends a guest link's message This was written with Claude Opus 5.5 in Claude Code, driven from T3 Code.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsTypes into a guest link's message box and sends the Enter keydowns an IME sends when the user confirms a candidate: one flagged by isComposing and one by keyCode 229, the order Safari uses after compositionend. Neither should send the message, take the key, or move focus or text, so the next real Enter sends it. On main the keyCode 229 Enter posts the half-typed message to the owner, so this fails. …nfirms an IME candidate The guest composer's Enter-to-send skipped keys flagged by isComposing but not keyCode 229. Safari fires compositionend before the keydown of the Enter that confirms a candidate, so that Enter arrives with isComposing false and keyCode 229, and the half-typed message went to the thread owner for approval. The handler now also skips keyCode 229, as the app composer it copies does, and as pingdotgg#10262 and pingdotgg#28298 did for the settings inputs. Bug: Enter that confirms an IME candidate in Safari sends a guest link's message
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
2 tasks done
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
size:XS
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | |||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |