mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-23 19:11:14 +01:00
Treat meta key same as ctrl (#12051)
This commit is contained in:
parent
e6790d9a6a
commit
767033e4d8
@ -18,7 +18,11 @@ export default function useKeyboardListener(
|
||||
|
||||
if (keys.includes(e.key)) {
|
||||
e.preventDefault();
|
||||
listener(e.key, { down: true, repeat: e.repeat, ctrl: e.ctrlKey });
|
||||
listener(e.key, {
|
||||
down: true,
|
||||
repeat: e.repeat,
|
||||
ctrl: e.ctrlKey || e.metaKey,
|
||||
});
|
||||
}
|
||||
},
|
||||
[keys, listener],
|
||||
|
Loading…
Reference in New Issue
Block a user