Merge pull request #111 from ibs0d/claude/camera-group-keyboard-shortcuts-YaGM0

fix: guard against null key in camera group keyboard shortcut handler
This commit is contained in:
ibs0d 2026-03-22 22:07:35 +11:00 committed by GitHub
commit 928ad18264
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;
}