diff options
Diffstat (limited to 'client-web/source/keybinds.ts')
-rw-r--r-- | client-web/source/keybinds.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/client-web/source/keybinds.ts b/client-web/source/keybinds.ts index 700faeb..aaaefc7 100644 --- a/client-web/source/keybinds.ts +++ b/client-web/source/keybinds.ts @@ -5,6 +5,7 @@ */ /// <reference lib="dom" /> +import { chat_control } from "./menu.ts"; import { create_camera_res, create_mic_res, create_screencast_res } from "./resource/track.ts"; import { Room } from "./room.ts" import { update_serviceworker } from "./sw/client.ts"; @@ -15,10 +16,8 @@ export function setup_keybinds(room: Room) { if (ev.target instanceof HTMLInputElement && !(ev.target.type == "button")) return if (ev.repeat) return if (ev.code == "Enter" && ev.ctrlKey) { - // TODO! show chat - // room.chat.shown = !room.chat.shown - // if (room.chat.shown) room.chat.focus() - // ev.preventDefault() // so focused buttons dont trigger + chat_control() + ev.preventDefault() // so focused buttons dont trigger } if (ev.shiftKey) { if (ev.code == "KeyM" || ev.code == "KeyR") room.local_user.await_add_resource(create_mic_res()) |