Skip to content

Fix: the device tool's Part RELOAD and SAVE reach PART's actions in the two-column Part menu - #2601

Merged
repeat98 merged 1 commit into
mainfrom
fix/device-part-menu-two-columns
Dec 4, 2026
Merged

repeat98 merged 1 commit into
mainfrom
fix/device-part-menu-two-columns

Conversation

@repeat98

@repeat98 repeat98 commented Dec 4, 2026

Copy link
Copy Markdown
Owner

What was wrong: with a module's row in the Part menu (ot_part_menu, as Bounce In Place adds), the base opens the Part menu in two columns and remembers the cursor. The device tool's reload and savepart steps assumed stock's one-column menu, so their keys could land on the module's row instead of RELOAD or SAVE.

What this changes: partMenu() in scripts/device.mjs presses LEFT, UP past every row the table can hold (PART and up to eight modules) and RIGHT before its steps, so the cursor starts on PART's actions. Stock's one-column menu ignores LEFT and RIGHT, and the extra UPs stop at RENAME, where the existing steps already start. Written and checked by @seniorspiz for Bounce In Place (#2548) and moved here so the module release carries only the module.

How I checked it: npm run pr:ready passed on this commit. No test drives partMenu; the key sequence was checked on a unit as below.

Tested on a unit: reported by @seniorspiz on 3 Dec 2026: Part RELOAD and SAVE through the tool on an Octatrack MKII with Bounce In Place's Part Edit row installed (development twin 4813a3e5 in RAM, never kept). Not run on an MKI; the MKI path is unchanged.

Edge cases

Case Why this change makes it a risk How run Result
Stock one-column Part menu (no module row) the added LEFT/RIGHT/UP keys must change nothing read: the existing steps start with UP×3 to RENAME, and UP stops there not run on a unit in this PR
A module row in the two-column menu the cursor remembered on the module's row as reported by @seniorspiz on the MKII pass, as reported
MKI its menu opens from the Part window unchanged code path not run

What the guides lacked or got wrong: nothing.

🤖 Generated with Claude Code

…he base's two-column Part menu

With a module's Part Edit row (ot_part_menu) the base opens two columns and
remembers the cursor, so the tool's keys landed on the module's row instead of
RELOAD or SAVE. LEFT, UP past every row and RIGHT put the cursor on PART's
actions first; stock's one-column menu ignores LEFT and RIGHT. Moved out of
Bounce In Place's release (#2548), where @seniorspiz wrote and checked it on
an MKII on 3 Dec 2026.

Co-Authored-By: seniorspiz <137111931+seniorspiz@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@repeat98
repeat98 merged commit 62da7fc into main Dec 4, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant