aboutsummaryrefslogtreecommitdiff
path: root/client-web/source/keybinds.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-04-01 16:48:57 +0200
committermetamuffin <metamuffin@disroot.org>2024-04-01 16:48:57 +0200
commit45529def628fd1562bef262312649b428bbdb0f7 (patch)
tree4d7e54e9d45bbf91c1fe2247bf379e0e879cd89b /client-web/source/keybinds.ts
parent5cd88136c70dc3aae12778180b7f1c2c568a00fc (diff)
downloadkeks-meet-45529def628fd1562bef262312649b428bbdb0f7.tar
keks-meet-45529def628fd1562bef262312649b428bbdb0f7.tar.bz2
keks-meet-45529def628fd1562bef262312649b428bbdb0f7.tar.zst
localization
Diffstat (limited to 'client-web/source/keybinds.ts')
-rw-r--r--client-web/source/keybinds.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/client-web/source/keybinds.ts b/client-web/source/keybinds.ts
index 047fe97..9284b92 100644
--- a/client-web/source/keybinds.ts
+++ b/client-web/source/keybinds.ts
@@ -6,6 +6,7 @@
/// <reference lib="dom" />
import { AppState } from "./index.ts";
+import { PO } from "./locale/mod.ts";
import { chat_control } from "./menu.ts";
import { create_camera_res, create_mic_res, create_screencast_res } from "./resource/track.ts";
import { update_serviceworker } from "./sw/client.ts";
@@ -24,7 +25,7 @@ export function setup_keybinds(state: AppState) {
if (ev.code == "KeyS") state.room?.local_user.await_add_resource(create_screencast_res())
if (ev.code == "KeyC" && !ev.ctrlKey) state.room?.local_user.await_add_resource(create_camera_res())
if (ev.code == "KeyC" && ev.ctrlKey) state.room?.local_user.resources.forEach(t => t.destroy())
- if (ev.code == "KeyU") if (globalThis.confirm("really update?")) update_serviceworker()
+ if (ev.code == "KeyU") if (globalThis.confirm(PO.confirm_update)) update_serviceworker()
if (ev.code == "KeyV") state.chat?.remove_oldest_message()
}
})