Fix emit replay looping and add PgUp/PgDn option stepping

This commit is contained in:
Jage9
2026-02-28 02:38:26 -05:00
parent 887aad9435
commit 932ab68be5
4 changed files with 19 additions and 1 deletions

View File

@@ -353,6 +353,16 @@ export function createItemPropertyEditor(deps: EditorDeps): {
return;
}
if (code === 'PageUp' || code === 'PageDown') {
const length = deps.state.itemPropertyOptionValues.length;
const delta = code === 'PageUp' ? -10 : 10;
const nextIndex = (deps.state.itemPropertyOptionIndex + delta + length * 1000) % length;
deps.state.itemPropertyOptionIndex = nextIndex;
deps.updateStatus(deps.state.itemPropertyOptionValues[nextIndex]);
deps.sfxUiBlip();
return;
}
const control = handleListControlKey(
code,
key,