Adjust piano octave/instrument shortcut feedback
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// Maintainer-controlled web client version.
|
||||
// Format: YYYY.MM.DD Rn (example: 2026.02.20 R2)
|
||||
window.CHGRID_WEB_VERSION = "2026.02.23 R222";
|
||||
window.CHGRID_WEB_VERSION = "2026.02.23 R223";
|
||||
// Optional display timezone for timestamps. Falls back to America/Detroit if unset/invalid.
|
||||
window.CHGRID_TIME_ZONE = "America/Detroit";
|
||||
|
||||
@@ -2702,13 +2702,7 @@ function handlePianoUseModeInput(code: string): void {
|
||||
const next = Math.max(-2, Math.min(2, current + (code === 'Equal' ? 1 : -1)));
|
||||
item.params.octave = next;
|
||||
signaling.send({ type: 'item_update', itemId, params: { octave: next } });
|
||||
void previewPianoSettingChange(item, { octave: next });
|
||||
updateStatus(`octave ${next}.`);
|
||||
if (next === current) {
|
||||
audio.sfxUiCancel();
|
||||
} else {
|
||||
audio.sfxUiBlip();
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (code.startsWith('Digit')) {
|
||||
@@ -2743,7 +2737,6 @@ function handlePianoUseModeInput(code: string): void {
|
||||
brightness: defaults.brightness,
|
||||
});
|
||||
updateStatus(`Instrument ${instrument}.`);
|
||||
audio.sfxUiBlip();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user