fix: guard against null key in camera group keyboard shortcut handler

https://claude.ai/code/session_018vH9fGSi5McLLa47GEiZJC
This commit is contained in:
Claude 2026-03-22 11:01:57 +00:00
parent 3043aa4d5b
commit 91a6a650f3
No known key found for this signature in database

View File

@ -68,7 +68,7 @@ function Live() {
useKeyboardListener(
["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"],
(key, modifiers) => {
if (!modifiers.down || !config || selectedCameraName) {
if (!modifiers.down || !config || !key || selectedCameraName) {
return false;
}