auto-git:

[change] src/app/App.tsx
This commit is contained in:
2026-04-23 08:06:15 +02:00
parent 84747cfe84
commit 6e171dc6ef

View File

@@ -1613,6 +1613,42 @@ function readVisibilityModeSelectValue(
}
}
function commitOnEnter(
event: ReactKeyboardEvent<HTMLInputElement>,
commit: () => void
) {
if (event.key !== "Enter") {
return;
}
event.currentTarget.blur();
commit();
}
function getControlEffectNumericValue(effect: ControlEffect): number | null {
switch (effect.type) {
case "setSoundVolume":
return effect.volume;
case "setLightIntensity":
case "setAmbientLightIntensity":
case "setSunLightIntensity":
return effect.intensity;
default:
return null;
}
}
function getControlEffectColorValue(effect: ControlEffect): string | null {
switch (effect.type) {
case "setLightColor":
case "setAmbientLightColor":
case "setSunLightColor":
return effect.colorHex;
default:
return null;
}
}
function readSequenceVisibilityTargetKey(value: string):
| {
kind: "brush";