Host keyboard listeners miss events from a nested button in an initially inactive Solo option

I’ve had three frontier AI-models confirm this bug. 🙂

After a Solo reveals a nested button, Tab focuses the button and Enter activatesit. Pressing Escape while the button has focus fails to trigger the host artboard's Escape listener. Changing the Solo's initial selection restores delivery with the same listeners, state machine and keystrokes.

Reproduced on December 4, 2026 with Rive CLI 1.12.0, using the native

`--commands` runtime on macOS 27.0.1 (arm64). The scene uses only RML.

## Reproduce

From the folder containing `rive.yaml`, run

```sh

rive . --commands < repro.commands

cat build/after.json


repro.commandsrive.yamlscene.rml

```

The commands show the `Page` option, press Tab, then Enter, then Escape.
The button handles Enter on key-up and writes `pressed` to `button/state`.

The host listens for Escape on key-down and writes `escape heard` to `heard`.

The button has no Escape listener. According to `rive docs focus`, keyboard events are offered to the focused node and then to its ancestors, so the host should receive Escape in both runs.

For the control, change only the `Panel` Solo's `activeComponentId` in `scene.rml` from `1:71` to `1:72` and run the same commands again. The state machine still enters `Show other`, so the button is hidden before `pageShown=true` in both runs.

| Solo's authored selection | `button/state` after Enter | `heard` after Escape |

|---|---|---|

| `Other` (`1:71`, as supplied) | `"pressed"` | `""` |

| `Page` (`1:72`, control) | `"pressed"` | `"escape heard"` (expected) |

`build/before-show.json` and `build/focused.json` contain the semantics trees before the page opens and after Enter. In both runs, the button is absent from the first tree and marked as focused in the second.

## Additional observations

In separate variants, a host listener with `phaseValue="capture"` also missed Escape. Host listeners for Cmd+Z and Cmd+Shift+Z showed the same dependency on the Solo's initial selection. Replacing `NestedArtboard` with `NestedArtboardLayout`, or adding `FocusData canFocus="false"` to the placement or the component artboard, gave the same result.

In a variant with a second focusable button that stayed visible, we hid the page while its nested button had focus. The nested button disappeared from the semantics tree, and its placement's `worldBounds()` retained the last visible bounds. In the failing case, the nested button's blur listener did not fire, the other button did not gain focus, and the host missed the next Escape. With `Page` selected in the authored Solo, focus moved to the other button and the host received Escape.

`rive schema Backboard` lists `deferCollapsedNestedArtboards` as enabled by default. The CLI rejects a `Backboard` in a project fragment. We found no documented `rive.yaml` setting to disable deferral.