diff options
author | metamuffin <metamuffin@disroot.org> | 2023-09-06 23:13:06 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-09-06 23:13:06 +0200 |
commit | 6af298c5a332f865e626e1ca3903a5004ba1527d (patch) | |
tree | 7c55bf1ff1a1a08d0e767e357c33eebba8865137 /client-web/source/keybinds.ts | |
parent | 865607c4f4e992fd32c2241e896e56e1a4fcfe28 (diff) | |
download | keks-meet-6af298c5a332f865e626e1ca3903a5004ba1527d.tar keks-meet-6af298c5a332f865e626e1ca3903a5004ba1527d.tar.bz2 keks-meet-6af298c5a332f865e626e1ca3903a5004ba1527d.tar.zst |
fix automatic chat control
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()) |