Skip to content

Field widgets: Tags, Lookup and People act on an Enter pressed while an input method is composing #35797

Closed

Description

@objectstack-fleet

repo:objectstack#1 · os-sales · session_01L6bhgTC8kn7AdeMpMmyhJG

Filing gate: ④ child of the coordination parent #35683 (list inline-edit redo). Source: the contract review of PR #35747 (record 7034067196, nit N3), which the seat ruled filed as its own card.

What is left

PR #35747 makes the list grid ignore keys pressed while an input method is composing (isComposing, or keyCode 229), so a Chinese pinyin user's Enter that picks a word no longer commits the cell. That guard belongs to the table's own key handlers. Field widgets that read Enter themselves still act on it during a composition, in the grid's editors and on the record form alike. Read at PR #35747 head fb141148 (pre-existing on main):

  • ui/packages/fields/src/widgets/TagsField.tsx (near :65) adds the draft as a tag on Enter or comma.
  • Enter in the search box of LookupField and of PeoplePicker picks the highlighted entry.

Why

A user typing Chinese, Japanese or Korean into a tags field, or into a lookup's or people picker's search, presses Enter to pick a word from the input method. Today that Enter also adds half-typed pinyin as a tag, or picks whatever entry is highlighted. The user has to undo it and type again.

Done when

  • In each of the three widgets, an Enter (or the tag field's comma) pressed during a composition does only what the input method does with it; the widget acts on the next Enter after the composition ends.
  • One shared helper is used (the grid's isImeKey from feat(list): select a cell with a click, edit with a double-click, Enter or typing; no inline-edit toggle (#35684, #35687) #35747, or one exported beside it), not three copies.
  • Pins per widget with a real composition sequence (compositionstart, keydown Enter with isComposing: true and keyCode 229, compositionend); a check in Chromium with a real composition event, and Safari's post-composition 229 Enter pinned.

Grading: area:ux · Bug · p2 · reach: users who type through an input method into tags, lookups or people pickers · evidence: read on the PR #35747 branch at fb141148; the L2 record 7034067196, N3.

Reader: the seat's next area thread for epic #35683, or the domain:ui lane.

Dedupe: TagsField (objectstack issues, open) → 0; isComposing open → 2 (#35684, #35687, the grid's own guard); IME composition Enter open → the same 2.

Activity

  1. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui (field widgets) · pm:queue; rationale: area:ux · Bug · Impeded (Tags, Lookup and People act on an Enter pressed while an input method is composing, so a pinyin user's word pick commits early, in grid editors and on the record form) · zh-CN users of those widgets, often · pre-existing, read in the PR #35747 review → p2 as set · size S. Same guard the grid got in #35747 (topic #35683, IME row of #35687).

  2. added
    domain:ui
    pm:queue
    on Nov 20, 2026
  3. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim: PM loop · 2026-11-21T04:06Z
    Area: b1-DB
    Session: session_01L6bhgW85kwjGaz7HqsmEuv (area b1-DB, session 2; its os-dev subagent runs under the same session)
    Account: os-sales
    Branch: claude/issue-35797-ime-enter-widgets
    Seat: repo:objectstack#1
    Domain: domain:ui
    File surface: ui/packages/fields/src/widgets/{TagsField,LookupField,PeoplePicker}.tsx; the shared isImeKey helper (now ui/packages/components/src/renderers/complex/dataTableCellSelection.ts:23) moved or re-homed where @object-ui/fields can import it; a new test named for the card.
    Container & model: S, mode:subagent, model: opus, effort: medium
    Clause-②: no (provisional: if isImeKey has to be exported from the @object-ui/components entry, it reads yes (widening), the dev stops, and the claim is amended for the seat's declaration L2)
    Metadata-protocol: none
    Premise: re-read on main by the area: holds. No open PR touches these files.
    Basis: card #35797, a p2 follow-up child of epic #35683 (inline edit), whose children the maintainer exempted on 2026-11-20 00:47Z. It must land before #35688's slice S2 reworks these widgets.
    Resume-from: none
    Fold-or-serial: serial; no fold. The PR carries Fixes #35797.

  4. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Seat call · 2026-11-21T05:01Z · PR #35993 · "Done when" bullet 2 ("one shared helper, not three copies") is read as: one predicate inside @object-ui/fields, shared by Tags, Lookup and People, which #35993 does. Collapsing it with the grid's byte-identical isImeKey needs a new public export (or a new home) and its own declaration review, so it moves to #35996, together with the three other unguarded Enter handlers the dev read (GridField, DatePickerField, RecordPickerDialog). #35993 keeps Fixes #35797 and adds no scope.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uxdomain:uipm:queuepriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions