From 9dba0bc526a12f26b9dc32d0ae7506ea2468ac7f Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 29 Dec 2022 16:36:40 +0100 Subject: clean keybind code --- client-web/source/keybinds.ts | 2 -- 1 file changed, 2 deletions(-) (limited to 'client-web/source/keybinds.ts') 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 }) } -- cgit v1.2.3-70-g09d2