Commit Graph
767 Commits
Author SHA1 Message Date
tomasmark79andFredApps d3c6bce447 Use canonical Wayland trackpad pinch support in PDFCraft (#1580)
* M3: restore native Wayland pinch through the resolved winit fork

Refresh #1580 on current main, pin the tested companion winit port and keep vendor changes as provenance. Permit only the exact temporary fork revision until storytold/winit#20 is merged. Retain the egui scale regressions and document current validation limits.

* docs: record native pinch verification and keep roadmap quotes contiguous

Document current-head GNOME feedback and protocol evidence, retain untested compositor and teardown limits, and address the MD028 review finding without changing runtime code or dependency-origin policy.

---------

Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-29 09:35:42 +01:00
FredApps 11a1928207 Merge main into command-palette-runs 2026-11-28 22:50:33 +01:00
e5812b8f17 Document CRAFT_I18N_DIR in the environment table (#8621)
development.md listed the other build inputs but not CRAFT_I18N_DIR.

Co-authored-by: Fredrik Hallin <fredrik.hallin@guidelinegeo.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 21:25:16 +01:00
codeiouandClaude Opus 5.5 806b7721f6 fix(ui): the command palette runs what is picked in it
Since the craft framework port, Find tools and commands (Ctrl+K) listed every row
disabled, so Enter and clicks ran nothing. The open palette counted as a modal in the
app's command gate (menus::gated), and craft-libs applies that gate to the palette's own
rows, which it resolves and fires as the window under the palette has them.

- The command gate counts dialogs and prompts only. While the palette is open its modal
  layer still keeps the keys and the controls under it from the commands; menus::gated
  keeps the palette for the menu bar's keys and the native menu, as 0.22.0's menu gate did.
- The palette's tool rows fire tool.group with the group in a parameter, which nothing
  handled; run_catalog_command now opens the named tool, as it does for tools.<id>.
- split_view_render::a_late_edit_turns_the_page_in_both_panes opens the palette with
  Ctrl+K and types its query, and runs again; its row leaves docs/port-known-gaps.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 04:19:23 +10:00
FredApps c7b433206c Merge main into #3280
alt.rs: main now resolves indirect structure kids (#5611), checks the parent and computes the new parent /K before it reads the page, and marks content through decode_page_streams/Marked (damaged streams refuse). This PR's mutation_mcids ownership checks replace main's has_child_structure + mcids in both actions, and its reachable-parent check runs with main's parent checks, before any write. Since main validates the parent first, the missing-/P + missing-content case now refuses with NoParent (test renamed), still without mutation. tools.rs and roadmap keep main's text plus this PR's refusal notes.
2026-11-26 23:00:01 +07:00
FredApps 8856cb2753 Merge main into #3539 2026-11-26 21:55:31 +07:00
FredApps d3850a77b0 Merge pull request #7704 from alehel/codex/fix-watermark-visible-crop
Fix PDF watermark source clipping to visible page bounds
2026-11-26 15:37:24 +01:00
FredApps 6f1c601a38 Merge pull request #7810 from KenM76/feat/autotag-pagination
Auto-tag marks running headers, footers and page numbers as pagination artifacts (#7065)
2026-11-26 14:12:01 +01:00
FredApps ed1b40aa06 Merge pull request #3972 from bmh129/fix/startup-activation-token
M3: hand the launcher's activation token back from the first window (Linux)
2026-11-26 14:11:08 +01:00
FredApps ada013f042 Merge main into #7704
docs/roadmap.md change-log table: kept this PR's 2026-11-18 row and main's new 2026-10-16 row.
2026-11-26 20:03:47 +07:00
FredApps 257407147d Merge main into #2896
Main split organize/src/import.rs into import/{carry,combine,copy,fields}.rs and already made set_attachments UTF-16-safe and indirect-/Names-safe (this PR's other two hunks), so those take main's version. Ported the PR's core change: insert_file_pages now merges the source's catalog attachments via carry::collect_attachments + attachments::entries (made pub(crate)) + set_attachments. PR's engine regression test file kept as-is; parity evidence/notes merged onto main's entries (it/ paths); ROADMAP/docs entries added to main's text. cargo check -p pdfcraft-organize -p pdfcraft-engine --tests passes locally.
2026-11-26 19:53:56 +07:00
FredApps dc3aab8af9 Merge branch 'main' into feat/autotag-pagination 2026-11-26 13:23:18 +01:00
FredApps b0944dce35 Merge branch 'main' into codex/fix-watermark-visible-crop 2026-11-26 13:23:12 +01:00
FredApps 9b6e2a1660 Merge branch 'main' into fix/startup-activation-token 2026-11-26 13:22:30 +01:00
Dylan M. Taylor b86eff8259 merge deps: union workspace deps at the port pin (wordmodel, mcp-server, jsonrpc; craft-pdf fonts; 0.22.0), hayro/framework patch paths, shared AGENTS.md with port facts, comment wording, port Cargo.lock restored. The lead re-pins craft-libs after the framework sync. 2026-11-22 22:50:16 -05:00
Dylan M. Taylor 333b287a8b Production merge skeleton: upstream/main 9b3e6d6f3 into area/app-1 6cfe35235, conflict markers left in (42 files; 4 modify/delete keep the port's deletion) 2026-11-22 22:39:00 -05:00
Dylan M. Taylor 7956a53fd8 Clip picture drag previews to their source page 2026-11-21 16:01:18 -05:00
Dylan M. Taylor df2d8196b7 Keep form edits when switching split panes 2026-11-21 15:24:22 -05:00
Dylan M. Taylor 7561f576d1 Enable field table Escape regression 2026-11-21 14:30:18 -05:00
Dylan M. Taylor 63cc4622ca Keep clipped image preview inside its live frame 2026-11-21 13:32:10 -05:00
Dylan M. Taylor 01131a176a Enable popup text and close undo test 2026-11-21 12:00:14 -05:00
Dylan M. Taylor 18eb0f125f Known gaps: record the traced causes (comment double-click, split-pane field press) 2026-11-21 02:04:46 -05:00
Dylan M. Taylor 28f3077010 Record current image and split view failures 2026-11-21 01:43:46 -05:00
Dylan M. Taylor 5c3d95b269 Find panel snapshot roots in the dock 2026-11-21 01:37:23 -05:00
Dylan M. Taylor b727272baf Exercise link appearance without rewriting its destination 2026-11-21 01:36:22 -05:00
Dylan M. Taylor 78b34cd076 Exercise attachment menu after closing the existing tab 2026-11-21 01:33:36 -05:00
Dylan M. Taylor d1ace9e5ef Port: ignore the 12 remaining failing app tests as documented known gaps (docs/port-known-gaps.md) 2026-11-20 21:06:44 -05:00
aiongg 3f3b3e634a Adopt the shared AGENTS.md (RFC-0072) (#7937)
* Adopt the shared AGENTS.md (RFC-0072) and test rules (RFC-0071)

* Point removed AGENTS.md section references at the shared standards
2026-11-20 18:10:17 +07:00
Dylan M. Taylor 35d9b8c956 pdf-dialogs-w9: net change of 2 commits
- pdf-dialogs-w9: written from its sheet
- pdf-dialogs-w9: review fixes (review-1)
2026-11-18 16:15:26 -05:00
Dylan M. Taylor cb94bfbaa0 pdf-shell-w12: net change of 2 commits
- pdf-shell-w12: written by an agent
- pdf-shell-w12: finished by an agent
2026-11-18 16:15:24 -05:00
Dylan M. Taylor 7e8413ac40 pdf-shell-w7: net change of 3 commits
- pdf-shell-w7: written from its sheet
- pdf-shell-w7: repair 1
- pdf-shell-w7: review fixes (review-1)
2026-11-18 16:15:24 -05:00
KenM76andClaude Opus 5.5 1b9fa432f0 feat(a11y): mark running headers and footers as pagination artifacts
Auto-tag Apply finds text that repeats near the top or bottom edge of
most pages before assigning roles: the same text, digits and lone roman
numerals aside, within 4 units of the same height, on at least 40% of
the pages and at least two. It wraps that text in
/Artifact <</Type /Pagination /Subtype /Header|/Footer>> BDC ... EMC
with no MCID instead of tagging it (ISO 32000-2 14.8.2.2). A group of
changing, heading-sized text is left as headings. Running text is left
out of the body style and heading levels, MCIDs number the tagged
objects only, and AutoTagResult counts headers and footers.

a11y::running_text lists the findings without changing the document;
accessibility_autotag_apply returns them as running_text and
running_count, and its note says so.

Adapted from pdfcer (MIT, same author) at ccb49b46, block_layout.rs,
with distinct pages counted instead of objects.

Closes #7065

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 14:59:31 -05:00
alehel a7fb2eb604 M7: cover partial watermark crops and clarify shipped workflows (#7687) 2026-11-18 13:20:03 +01:00
alehel 2af0f4045c M7: clip PDF watermark sources to visible page bounds (#7687) 2026-11-18 13:13:10 +01:00
Perchenko Anton 0c39992c99 Print: make a long printer list easier to browse and search (#4399)
**Update on 2026-11-03 (`db57e7de`).** Merged main `ecdd1e65` and preserved both sets of parity evidence. The picker now uses the public `ComboBox::show_ui` response to track the open menu and clear its search when it closes. All 30 print UI tests passed locally on macOS arm64, including the three printer-picker regressions. Formatting and `cargo xtask parity` passed. [CI](https://github.com/storytold/pdfcraft/actions/runs/41673448570) and [SonarCloud](https://github.com/storytold/pdfcraft/actions/runs/41673448592) track this commit.

## What this changes

Fixes #4399.

The printer picker opens a wider, taller menu with a name filter. Long device names wrap, while Search and Save as PDF stay visible as the device list scrolls. Search ignores case, trims surrounding spaces and keeps the current destination until a row is chosen. Reopening clears the filter and brings the selected device into view.

The large-fleet test now checks that the selected row is between Search and Save as PDF after reopening, without manually scrolling at that point. This catches a broken automatic reveal instead of hiding it with a test-side scroll.

## How you verified it

- At `d14aed41`, the [hosted gate](https://github.com/storytold/pdfcraft/actions/runs/40305529036/job/121513571419) passes: 5,194 tests, 21 skipped. All three `printer_picker` tests explicitly pass, including the new reopening visibility assertion. Formatting, strict Clippy, layers, assets, parity and wasm checks pass in that gate.
- CodeRabbit's refreshed documentation check passes at 100%; both remaining test helpers are documented.
- The three original UI regressions failed against the original production module. They cover a 120-device fleet, Unicode/case matching, selection, reopening, no matches, long names and a 1024×768 window. A separate earlier before/after check caught an initially clipped Save as PDF row by physically clicking it.
- Earlier macOS validation inspected headless captures and exercised the real Print dialog through its control channel. Those are earlier-run results, not a new native macOS run on this head.
- The current local Windows Cargo 1.95 run cannot resolve the pinned craft-menu manifest and does not reach the UI tests. Runtime validation of this latest test update is the hosted gate above; no local test pass is claimed.

## Safety, provenance and reach

- [x] No new panicking shortcuts, unsafe code or input-derived indexing.
- [x] No new assets, fonts or dependencies.
- [x] Existing printer discovery, properties and print submission paths are used.
- [x] Automation remains available through `printers`, `printer_options` and `doc_print`; UI controls remain opt-in.
- [x] Printer-selection parity evidence and M10 progress notes are updated.

## Limits of verification

Physical printing was not tested. Keyboard injection into the earlier background native macOS window did not enter text; filter typing and selection were verified through egui_kittest.

AI assistance: implementation, tests and validation used Codex.
2026-11-18 16:31:06 +07:00
bmh129 4e634e4b01 M3: hand the launcher's activation token back from the first window (Linux)
A launcher with StartupNotify=true passes an activation token in
XDG_ACTIVATION_TOKEN (Wayland) or DESKTOP_STARTUP_ID (X11) and shows a
busy cursor until a window hands it back. winit hands back only a token
given through with_activation_token, and eframe never gives one, so GNOME
kept the busy cursor for 15 seconds after PdfCraft's window appeared, and
a Wayland window opened without keyboard focus.

Vendored winit patch 14: the first window created without a token takes
the environment's. Later windows don't reuse the spent token; an empty or
oversized (over 1,024 bytes) token is ignored, since on X11 an oversized
one would fail window creation. The variable stays in the environment:
removing it while other threads may read it is unsound.

Tests: startup_token's policy tests in the vendored crate (three fail with
the policy reverted) and apps/pdfcraft/tests/winit_startup_token.rs, which
keeps the patch in the build (fails with the Window::new wiring reverted).
2026-11-16 21:16:47 -06:00
Adrian f8d8aef6e4 M5: preserve macOS Minimize alongside Ctrl+M Comments (#3741) 2026-11-16 04:28:05 -05:00
FredApps 75a6ce50c3 Merge pull request #7377 from gmrmad1/docs/roadmap-2026-11-15
docs: bring ROADMAP.md and parity assessment current through 2026-11-15
2026-11-16 10:23:45 +01:00
NineandClaude Opus 5.5 799fdd14b9 bs: Bosnian language support (#5445)
* Add Bosnian (bs) to the interface languages

bs.tsv: Bosnian (Latin script, Ijekavian) catalog covering every key of
PdfCraft's other catalogs, its wording shared with storytold/craft-i18n
locales/bs/ and the strings craft-i18n lacks translated new. Every bs-*
locale selects it; counts use one/few/other. Locale and plural tests,
localization docs and an attribution entry (AI-assisted, not yet
reviewed by a native speaker).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Tayw8nmxoLLmKv13jK93z

* Bosnian: date-format language, English picker name, word-count ellipsis

Preferences > Date format offers exactly the interface languages, so
Bosnian gets its month and day names there; the picker falls back to
"Bosnian" when no face can draw the native name; Word Count keeps the
command label's trailing ellipsis.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Tayw8nmxoLLmKv13jK93z

* bs: wording from the craft-i18n catalog review

The Bosnian catalog review (storytold/craft-i18n#72) asked for one word
per concept; this catalog follows: pan is "pomjeranje" (not
"pomicanje"), a spreadsheet is "proračunska tabela", Greek & Cyrillic
reads "Grčko pismo i ćirilica". Placeholders and ellipses are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Tayw8nmxoLLmKv13jK93z

* bs: take the catalog from craft-i18n, keep only PdfCraft's code

PdfCraft now reads its translations from storytold/craft-i18n (#6055),
and this PR's Bosnian rows are there (storytold/craft-i18n#141, in the
pinned commit), so crates/ui-egui/src/i18n/bs.tsv goes. What stays is
PdfCraft's part, redone against the new registry: the bs row in
LANGUAGES, "Bosnian" as its English picker name, Bosnian date names,
locale, persistence and one/few/other plural tests (Bosnian follows the
Russian rule in the legacy rule table), and the docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Tayw8nmxoLLmKv13jK93z

* docs: Bosnian revision row in the revision history; language totals

The 2026-11-04 Bosnian row had landed in the key-languages table instead
of the revision history; it is now the history's first row. The summary
counts 21 other languages, 35 catalogs plus English, 36 in Preferences,
as LANGUAGES lists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Tayw8nmxoLLmKv13jK93z

* Docs: list bs as a ui.set / ui.state language value

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-16 08:59:35 +01:00
Madhav Agarwal 635caf2183 docs: bring ROADMAP.md current through 2026-11-15 2026-11-15 09:04:27 +05:30
FredApps 2a639868dd Merge branch 'main' into port-2081 2026-11-13 18:59:56 +01:00
FredApps 330cde8035 Merge pull request #5559 from vangel76/feat/recent-reveal-5452
Reveal recent files in the system file manager from Home (#5452)
2026-11-13 02:19:00 +01:00
FredApps feec1853c0 Merge main into port-2081
Main now has page actions, timers and layers (#6985) and shared text
allowances for inspection (#6015). Conflicts:
- render/inspect/annotations.rs: main's collect_link (which notes
  JavaScript even when the link isn't listed) takes this branch's link
  script budget and its once-only warning; push_link is gone.
- automation form_tools.rs, js tests.rs, docs/acroform-script-workflows.md:
  both sides added at the same place; both kept.
Adapted to main: the link runner's Job gets `timer: None`, and, as a
button's script does, the document's layers and the fields as page
actions and timers show them (live_state).
2026-11-12 20:53:37 +01:00
FredApps 522fa442f5 Merge main into port-4751
vendor/README.md conflicted: main took hayro-interpret patch 104 (RGB
colours in isolated DeviceCMYK groups). This branch's viewer overrides
become patches 105 (annotation_overrides) and 106 (appearance_overrides)
in the README, in vendor/hayro-interpret/src/interpret/mod.rs, in the
raster test and in docs/acroform-script-workflows.md.
2026-11-12 18:15:19 +01:00
120c62fb82 Auto-tag Apply tags headings by size and weight (#7062) (#7069)
* feat(a11y): auto-tag Apply tags headings by size and weight

Apply now chooses H1-H6 or P per text object instead of P for all.
The body style is the half-point size showing the most characters (bold
when most of those are bold). A short object (at most 3 lines, 200
characters, with a letter) is a heading when it is 1.15x the body, or
bold at 0.9x the body over a regular body in at most 2 lines. Heading
styles rank across the document, larger and bolder first, capped at H6,
and a level never skips past the one before it so heading-nesting
passes.

Size is Tf x Tm x CTM with q/Q tracked; bold is Metrics.bold. Text in
render mode 3 (an OCR layer) is not counted. Font metrics are measured
once per font object per document, at most 256 fonts.
AutoTagResult gains a headings count. Parity, gaps, roadmap and the
apply tool's note say headings are tagged.

Fixes #7062.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(a11y): rank heading styles by map and skip clip-only text

Look up each heading style's rank in a map built once after sorting,
so ranking is linear in the number of text objects. Text in render
mode 7 (clip only) paints nothing, so it is excluded from heading
evidence like mode 3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: KenM76 <KenM76>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 17:58:31 +01:00
vangel76andClaude Sonnet 5.5 08bf6ec278 Merge upstream/main into feat/recent-reveal-5452
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 22:24:02 +01:00
FredApps 43e3eb62bd Merge remote-tracking branch 'origin/main' into port-2081
# Conflicts:
#	crates/automation/src/a11y/form_tools.rs
#	crates/engine/src/lib.rs
#	crates/js/src/tests.rs
2026-11-11 13:32:54 +01:00
FredAppsandLMatt08 12bc215e12 docs: link JavaScript actions and app.openDoc (#2081 port)
Co-authored-by: LMatt08 <245691047+LMatt08@users.noreply.github.com>
2026-11-11 13:12:58 +01:00
FredApps c0f5f92b57 Merge remote-tracking branch 'origin/main' into port-4751
# Conflicts:
#	crates/automation/src/dispatch.rs
#	crates/automation/src/tools.rs
#	crates/forms/src/lib.rs
#	crates/js/src/tests.rs
#	crates/ui-egui/src/workflows/js_ui.rs
#	parity/acrobat-features.toml
2026-11-11 13:11:32 +01:00
FredAppsandDWAA1660 059dbd6e00 feat(forms): open, Will Save and Will Print actions, widget pointer/focus scripts, setItems/setAction/toSource (port of #344) (#6969)
* feat(js, forms): field setItems, setAction and a bounded toSource (#269)

Ported from #344 by @DWAA1660 onto the per-document script session.

- `field.setItems(items)` replaces a combo or list box's items (text, or
  [text, export] pairs). The value stays when an item still has it, and
  otherwise becomes the first item's. Written as the field's /Opt (pairs
  only where the export value differs), /I dropped, field redrawn.
- `field.setAction(trigger, script)` installs a JavaScript action for one
  trigger (MouseUp/Down/Enter/Exit, OnFocus/OnBlur, Keystroke, Validate,
  Calculate, Format), replacing only that trigger's action.
- `Object.prototype.toSource()` writes plain data (strings, numbers,
  booleans, null, undefined, arrays, objects) that eval reads back. It
  refuses functions, cycles, more than 64 levels, 10,000 values or 1 MiB
  with an error the script can catch.

Co-authored-by: DWAA1660 <dwatnip123@gmail.com>

* feat(engine): run a form's open, Will Save and Will Print actions and its widgets' pointer and focus scripts (#269)

Ported from #344 by @DWAA1660 onto the per-document script session: each
runs in the document's retained realm, so state the document scripts and
earlier events left is kept.

- The catalog /OpenAction's JavaScript (and its /Next chain, bounded and
  cycle-safe; other action types skipped) runs once on opening, after the
  document scripts, for background opens and reloads too, and again on
  Revert in a fresh realm. Event Doc/Open.
- `Session::run_document_actions` runs /AA /WS (Will Save) or /AA /WP
  (Will Print). A failing action is reported and never stops the save or
  print. doc_save and doc_print run them first and report what they said
  (`will_save`, `will_print`).
- Scripts that run unasked (open, Will Save, Will Print, pointer over,
  focus) may only ask for highlight, zoom, focus or a page; a click's
  Mouse Down / Mouse Up keep their requests.
- `Session::field_trigger` runs a widget's Mouse Enter, Mouse Exit, Mouse
  Down, Mouse Up, Focus or Blur JavaScript (one undoable edit), reading only
  that widget's dictionary. `field_focus` now runs an AcroForm widget's On
  Focus / On Blur as well as XFA enter/exit.
- New tool `js_event`; form_focus's description says AcroForm focus
  scripts run too.

Co-authored-by: DWAA1660 <dwatnip123@gmail.com>

* feat(ui): Will Save before saving, Will Print before printing, and widget pointer scripts in the app (#269, #247)

Ported from #344 by @DWAA1660.

- Save (both paths) runs the document's Will Save actions first, and Print
  its Will Print actions; what they change is saved or printed, and what
  they say is shown.
- The pointer moving onto or off a form widget queues its Mouse Enter /
  Mouse Exit script, a press its Mouse Down. A click on a check box or radio
  button queues its Mouse Up after the toggle, so the script reads the value
  the click stored (#247). The queue runs after the frame's edit.

Co-authored-by: DWAA1660 <dwatnip123@gmail.com>

* docs(parity): document actions and widget triggers are partly supported (#269)

Co-authored-by: DWAA1660 <dwatnip123@gmail.com>

* test: check toSource's text (scripts can't eval it) and the trigger event names (#269)

Co-authored-by: DWAA1660 <dwatnip123@gmail.com>

* test: a check box's Mouse Up reads its new value; keep the fixtures on screen and the realm across an in-place save (#247, #269)

Co-authored-by: DWAA1660 <dwatnip123@gmail.com>

* fix(engine, forms, js, ui): review fixes for document actions and field triggers

- widget trigger actions follow /Next, each action its own edit; errors don't stop the chain
- setAction installs on the field the object stands for when names repeat
- toSource refuses non-plain objects and a __proto__ key
- doc_print checks the destination before Will Print; js_event returns only its own output
- combo/list clicks run Mouse Up; a refused click's Mouse Up doesn't run
- label crops are re-read when Will Print changed the document

Co-authored-by: DWAA1660 <dwatnip123@gmail.com>

* forms: run a pointer trigger on the field it hit and refresh the edited field's draft

A trigger now carries the field's object, so of fields sharing a name the one under the
pointer runs its own script (Session::field_trigger_target); js_event passes the field it
resolved. A trigger script changing the field being edited shows in its editor unless the
user already typed there, as focus scripts do.

Co-authored-by: DWAA1660 <dwatnip123@gmail.com>

* forms: carry the field's identity through focus scripts and js_event

Focus transitions now track the field object, so moving between fields sharing a name is a
move and the field that gained or lost focus runs its own script
(Session::field_focus_target). js_event takes an optional field_id from form_fields to pick
one of fields sharing a name.

Co-authored-by: DWAA1660 <dwatnip123@gmail.com>

---------

Co-authored-by: DWAA1660 <dwatnip123@gmail.com>
2026-11-11 13:09:37 +01:00