Skip to content

Field widgets: Grid, DatePicker and RecordPicker act on an Enter pressed while an input method is composing; one IME-key predicate for grid and fields #35996

Closed

Description

@objectstack-fleet

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Split from #35797 by the seat (PR #35993's acceptance notes list both items; that PR stays on its three widgets). Same class as #35797, under the #35683 inline-edit work.

What is left

  1. Three more Enter handlers have no composition guard. Read only, not reproduced, on PR fix(fields): tags, lookup and people pickers leave an IME-owned Enter to the input method #35993's branch:
    • ui/packages/fields/src/widgets/GridField.tsx: the cell onKeyDown moves to the next row on Enter.
    • ui/packages/fields/src/widgets/DatePickerField.tsx: Enter commits the typed date text.
    • RecordPickerDialog: Enter in the page-jump box jumps.
  2. Two copies of one predicate. The grid's isImeKey (@object-ui/components, from feat(list): select a cell with a click, edit with a double-click, Enter or typing; no inline-edit toggle (#35684, #35687) #35747) and ui/packages/fields/src/widgets/imeKey.ts (from fix(fields): tags, lookup and people pickers leave an IME-owned Enter to the input method #35993) are byte-identical, and nothing keeps them so.

Why

A Chinese, Japanese or Korean user who presses Enter to pick a word from the input method also moves the grid field to the next row, commits a half-typed date, or jumps the picker's page. Two hand-kept copies of the guard drift apart the next time one is fixed.

To do

  1. Reproduce each of the three in Chromium with a real composition (CDP Input.imeSetComposition), then guard the ones that reproduce; say which did not.
  2. Leave one definition of the predicate. Pick its home (an export on the @object-ui/components entry, or a lower package both already depend on) and measure Clause-② on the built declarations.
  3. Pins per widget with a real composition sequence (compositionstart, keydown Enter with isComposing: true and keyCode 229, compositionend), Safari's post-composition 229 Enter pinned.

Acceptance

  • In each reproduced widget, an Enter during a composition does only what the input method does with it.
  • One predicate in the repository; the grid and the field widgets import it.

Blocked-by: #35993.
Reader: the seat's area thread for derived bugs (b1-DB), domain:ui.

Activity

  1. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui (fields) · pm:queue; rationale: area:ux · Bug · GridField, DatePickerField and RecordPickerDialog act on an Enter pressed while an input method is composing, so a Chinese or Japanese user commits or moves mid-word; two byte-identical isImeKey copies should become one; same class as #35797; read, not reproduced → p2 (UX rule; every IME user of those widgets) · size S.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim: PM loop · 2026-11-21T12:34Z · area b1-DB (p2 bug derived from epic #35683).
    Area: b1-DB
    Session: session_01L6bhgW85kwjGaz7HqsmEuv (the b1-DB area thread)
    Account: os-sales
    Branch: claude/issue-35996-ime-enter-fields
    Seat: repo:objectstack#1
    Domain: domain:ui
    File surface: @object-ui/components new lib/ime-key.ts + its entry export, dataTableCellSelection.ts, renderers/complex/data-table.tsx (import only); @object-ui/fields GridField.tsx, widgets/date-picker/DatePickerField.tsx, RecordPickerDialog.tsx, the four widgets that import the predicate, imeKey.ts (kept as a one-line re-export of the components predicate, so there is one body), the 35797 test and a new imeComposition-35996.test.tsx; changesets (@object-ui/components minor for the new export, @object-ui/fields patch).
    Container & model: S code with M verification, area sub-agent, model: opus, effort: medium; the seat runs the declaration-face L2.
    Clause-②: yes (widening) (the components entry gains one value export, isImeKey; the area measures the built .d.ts of both packages)
    Metadata-protocol: none
    Premise (area, reproduced in Chromium with a real composition, keyCode 229 and isComposing): holds on all three. A composing Enter in GridField moves focus to the next row (and adds a row on the last one; the arrows are unguarded too); the date box commits a half-typed 2026-0 as invalid; the record picker's page box jumps a page and clears. A plain Enter is correct in each. The two predicate bodies are identical, and nothing keeps them so.
    Basis: card #35996.
    Scope, the seat's reading: one if (isImeKey(e)) return; guard in each of the three handlers (arrows included in GridField); the predicate's one home is the @object-ui/components entry (option A: the card names it, the grid copy already lives there, and fields already depends on components); a pin per control with a composing sequence, the Safari 229 Enter after composition, and a plain-Enter control, each ablated.
    Resume-from: none
    Fold-or-serial: serial; no fold. #36054 (#36023 S4) rewrites data-table.tsx and DatePickerField.tsx, and #36039 (#36023 S5) rewrites GridField.tsx and imports fields/imeKey.ts. Both are open, so this builds now but pushes after S4 has landed and merges main then; imeKey.ts stays as a re-export so S5's import keeps working, and overlap-check.mjs runs against #36039 before the push. L1 at L1-a. The PR carries Fixes #35996.

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 21, 2026
  5. added a commit that references this issue on Nov 22, 2026
    8aed508
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipm:dispatchedpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions