summaryrefslogtreecommitdiff
path: root/client-web/source/keybinds.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client-web/source/keybinds.ts')
-rw-r--r--client-web/source/keybinds.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/client-web/source/keybinds.ts b/client-web/source/keybinds.ts
index 311b55a..ad20d37 100644
--- a/client-web/source/keybinds.ts
+++ b/client-web/source/keybinds.ts
@@ -18,9 +18,10 @@ export function setup_keybinds(room: Room) {
return
}
if (command_mode) {
- if (ev.code == "KeyM") room.local_user.publish_track(room.local_user.create_mic_track())
- if (ev.code == "KeyC") room.local_user.publish_track(room.local_user.create_camera_track())
+ if (ev.code == "KeyM" || ev.code == "KeyR") room.local_user.publish_track(room.local_user.create_mic_track())
if (ev.code == "KeyS") room.local_user.publish_track(room.local_user.create_screencast_track())
+ if (ev.code == "KeyC" && !ev.ctrlKey) room.local_user.publish_track(room.local_user.create_camera_track())
+ if (ev.code == "KeyC" && ev.ctrlKey) room.local_user.tracks.forEach(t => t.end())
}
command_mode = false
})