diff --git a/.changeset/sibling-subgroup-fix.md b/.changeset/sibling-subgroup-fix.md deleted file mode 100644 index fd95192..0000000 --- a/.changeset/sibling-subgroup-fix.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"tabspot": patch ---- - -fix: prevent entering a previous sibling's subgroup from the next sibling. - -A grouper is entered only through its anchor (the focusable immediately preceding it). `findAdjacentGrouperWithEnter` previously also searched backward, which let a focusable that comes *after* a grouper enter that grouper's sublevel — crossing sibling boundaries. Pressing the cross-axis arrow (e.g. ArrowRight) on a sibling that follows a grouper now correctly does nothing. diff --git a/.changeset/stale-swans-take.md b/.changeset/stale-swans-take.md deleted file mode 100644 index 20d4728..0000000 --- a/.changeset/stale-swans-take.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"tabspot": minor ---- - -feat: replace root `manageEscape` and `manageHomeEnd` with a single `manageSpecialKeys` option. - -`manageSpecialKeys` accepts either a boolean (`true` handles all special keys) or a per-key object toggling `Escape`, `Home`, `End`, `PageUp`, and `PageDown` individually. Keys use the exact `KeyboardEvent.key` strings; omitted keys default to off. - -Migration: -- `{ manageEscape: true }` → `{ manageSpecialKeys: { Escape: true } }` -- `{ manageHomeEnd: true }` → `{ manageSpecialKeys: { Home: true, End: true, PageUp: true, PageDown: true } }` -- both true → `{ manageSpecialKeys: true }` \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a2a0c1..15b0e5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,25 @@ # tabspot +## 0.3.0 + +### Minor Changes + +- [#5](https://github.com/JLAcostaEC/tabspot/pull/5) [`f455c72`](https://github.com/JLAcostaEC/tabspot/commit/f455c72b3037173d7fba70beab4c3941d4cfbeb1) Thanks [@JLAcostaEC](https://github.com/JLAcostaEC)! - feat: replace root `manageEscape` and `manageHomeEnd` with a single `manageSpecialKeys` option. + + `manageSpecialKeys` accepts either a boolean (`true` handles all special keys) or a per-key object toggling `Escape`, `Home`, `End`, `PageUp`, and `PageDown` individually. Keys use the exact `KeyboardEvent.key` strings; omitted keys default to off. + + Migration: + + - `{ manageEscape: true }` → `{ manageSpecialKeys: { Escape: true } }` + - `{ manageHomeEnd: true }` → `{ manageSpecialKeys: { Home: true, End: true, PageUp: true, PageDown: true } }` + - both true → `{ manageSpecialKeys: true }` + +### Patch Changes + +- [#7](https://github.com/JLAcostaEC/tabspot/pull/7) [`f1d8007`](https://github.com/JLAcostaEC/tabspot/commit/f1d80070cc2ffacf3cdc28d953a50a2d717d932a) Thanks [@JLAcostaEC](https://github.com/JLAcostaEC)! - fix: prevent entering a previous sibling's subgroup from the next sibling. + + A grouper is entered only through its anchor (the focusable immediately preceding it). `findAdjacentGrouperWithEnter` previously also searched backward, which let a focusable that comes _after_ a grouper enter that grouper's sublevel — crossing sibling boundaries. Pressing the cross-axis arrow (e.g. ArrowRight) on a sibling that follows a grouper now correctly does nothing. + ## 0.2.0 ### Minor Changes diff --git a/package.json b/package.json index 80f7df9..9cb5525 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tabspot", - "version": "0.2.0", + "version": "0.3.0", "description": "Keyboard navigation engine for hierarchical interfaces", "keywords": [ "a11y",