aboutsummaryrefslogtreecommitdiff
path: root/client-web/source/keybinds.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2022-12-29 16:36:40 +0100
committermetamuffin <metamuffin@disroot.org>2022-12-29 16:36:40 +0100
commit9dba0bc526a12f26b9dc32d0ae7506ea2468ac7f (patch)
tree9273d05c81800d6061a9dd0439adf068ba20678c /client-web/source/keybinds.ts
parentd997c3941feebe8688bb60159f53b7feb24c85ae (diff)
downloadkeks-meet-9dba0bc526a12f26b9dc32d0ae7506ea2468ac7f.tar
keks-meet-9dba0bc526a12f26b9dc32d0ae7506ea2468ac7f.tar.bz2
keks-meet-9dba0bc526a12f26b9dc32d0ae7506ea2468ac7f.tar.zst
clean keybind code
Diffstat (limited to 'client-web/source/keybinds.ts')
-rw-r--r--client-web/source/keybinds.ts2
1 files changed, 0 insertions, 2 deletions
diff --git a/client-web/source/keybinds.ts b/client-web/source/keybinds.ts
index d096501..07e21bb 100644
--- a/client-web/source/keybinds.ts
+++ b/client-web/source/keybinds.ts
@@ -10,7 +10,6 @@ import { Room } from "./room.ts"
import { update_serviceworker } from "./sw/init.ts";
export function setup_keybinds(room: Room) {
- // let command_mode = false
document.body.addEventListener("keydown", ev => {
// TODO is there a proper solution?
if (ev.target instanceof HTMLInputElement && !(ev.target.type == "button")) return
@@ -27,6 +26,5 @@ export function setup_keybinds(room: Room) {
if (ev.code == "KeyC" && ev.ctrlKey) room.local_user.resources.forEach(t => t.destroy())
if (ev.code == "KeyU") if (window.confirm("really update?")) update_serviceworker()
}
- // command_mode = false
})
}