Add ability to select all on desktop (#12044)

* Add ability to select all review items

* Refactor keybaord listener
This commit is contained in:
Nicolas Mowen
2024-06-18 08:32:17 -06:00
committed by GitHub
parent 4bca405e29
commit e6790d9a6a
6 changed files with 64 additions and 29 deletions

View File

@@ -482,12 +482,12 @@ function PtzControlPanel({
useKeyboardListener(
["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "+", "-"],
(key, down, repeat) => {
if (repeat) {
(key, modifiers) => {
if (modifiers.repeat) {
return;
}
if (!down) {
if (!modifiers.down) {
sendPtz("STOP");
return;
}