diff options
author | metamuffin <metamuffin@disroot.org> | 2025-03-22 14:27:25 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-03-22 14:27:25 +0100 |
commit | 5d4cb7864dc3ca19669877def6c298eb96d19b16 (patch) | |
tree | 92444bfd31c9080e8c09aa7368e3f6cb4156ed35 /client-web/source/keybinds.ts | |
parent | 2f5d47d21dfc308c1b930cf45e13b34445d3a8e5 (diff) | |
download | keks-meet-5d4cb7864dc3ca19669877def6c298eb96d19b16.tar keks-meet-5d4cb7864dc3ca19669877def6c298eb96d19b16.tar.bz2 keks-meet-5d4cb7864dc3ca19669877def6c298eb96d19b16.tar.zst |
new translation system
Diffstat (limited to 'client-web/source/keybinds.ts')
-rw-r--r-- | client-web/source/keybinds.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client-web/source/keybinds.ts b/client-web/source/keybinds.ts index 9284b92..781008a 100644 --- a/client-web/source/keybinds.ts +++ b/client-web/source/keybinds.ts @@ -6,7 +6,7 @@ /// <reference lib="dom" /> import { AppState } from "./index.ts"; -import { PO } from "./locale/mod.ts"; +import { tr } from "./locale.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"; @@ -25,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(PO.confirm_update)) update_serviceworker() + if (ev.code == "KeyU") if (globalThis.confirm(tr("confirm_update"))) update_serviceworker() if (ev.code == "KeyV") state.chat?.remove_oldest_message() } }) |