mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-05 14:47:40 +03:00
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:
commit
928ad18264
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user