From 1a71efa2b2f4cc40577e212027579282c983c6f3 Mon Sep 17 00:00:00 2001 From: repeat98 Date: Fri, 4 Dec 2026 09:14:35 +0100 Subject: [PATCH] Fix: the device tool's Part RELOAD and SAVE reach PART's actions in the 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 --- changelog/2026-12-04-device-part-menu-two-columns.md | 1 + scripts/device.mjs | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 changelog/2026-12-04-device-part-menu-two-columns.md diff --git a/changelog/2026-12-04-device-part-menu-two-columns.md b/changelog/2026-12-04-device-part-menu-two-columns.md new file mode 100644 index 0000000000..882d647564 --- /dev/null +++ b/changelog/2026-12-04-device-part-menu-two-columns.md @@ -0,0 +1 @@ +The device tool's Part RELOAD and SAVE now reach the Part's actions when a module adds a row to the Part menu, as Bounce In Place does. diff --git a/scripts/device.mjs b/scripts/device.mjs index 51b9dc712f..c4cd09a100 100644 --- a/scripts/device.mjs +++ b/scripts/device.mjs @@ -319,7 +319,10 @@ async function part(n) { /** The Part menu (RENAME, RELOAD, SAVE, SAVE ALL), then `steps` in it. FUNC + PART on an MKII; on an MKI, FUNC + BANK in * the Part window (FUNC + MIDI), which NO closes afterwards (#2099). The menu keeps its cursor and stops at RENAME. */ async function partMenu(steps) { - if (await mkii()) await run('FUNC+PART w600 ' + steps) + // With a module's Part Edit row (ot_part_menu) the base opens two columns and remembers the cursor, on BOUNCE say: LEFT, + // UP past every row the table holds (PART and up to 8 modules) and RIGHT put it on PART's actions first. Stock's + // one-column menu ignores LEFT and RIGHT (MKII, 3 Dec 2026). + if (await mkii()) await run('FUNC+PART w600 LEFT w200 ' + 'UP w150 '.repeat(8) + 'RIGHT w200 ' + steps) else await run('FUNC+MIDI w300 FUNC+BANK w600 ' + steps + ' w300 NO w200') } /** Pick an effect by name through the stock chooser, then wait until the track runs it (effectTables: id -> descriptor