forked from Github/frigate
Add ability to select all on desktop (#12044)
* Add ability to select all review items * Refactor keybaord listener
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user