We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a73fee commit 47f184bCopy full SHA for 47f184b
src/components/CallControls.vue
@@ -34,7 +34,8 @@
34
35
<script>
36
import daily from "@daily-co/daily-js";
37
-import { ref } from "vue";
+import { ref, watchEffect } from "vue";
38
+import { useMagicKeys } from '@vueuse/core';
39
40
import leave from "../assets/leave_call.svg";
41
import micOff from "../assets/mic_off.svg";
@@ -53,9 +54,17 @@ export default {
53
54
"leaveCall",
55
"disableScreenShare",
56
],
- setup() {
57
+ setup(props) {
58
const supportsScreenshare = ref(false)
59
60
+ const { ctrl, m } = useMagicKeys()
61
+
62
+ watchEffect(() => {
63
+ if(ctrl.value && m.value) {
64
+ props.handleAudioClick()
65
+ }
66
+ })
67
68
return {
69
supportsScreenshare
70
}
0 commit comments