From 42cbe340dd1f5568e5aa92bd71df41e8a363a2f6 Mon Sep 17 00:00:00 2001 From: Frederic Henrichs Date: Mon, 21 Oct 2024 12:12:52 +0200 Subject: [PATCH] fronten/frame: add key code to load recovery page through remote_access. --- frontend/src/components/Frame.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/components/Frame.tsx b/frontend/src/components/Frame.tsx index d6bbf03..b936c3e 100644 --- a/frontend/src/components/Frame.tsx +++ b/frontend/src/components/Frame.tsx @@ -173,6 +173,9 @@ export class Frame extends Component { window.addEventListener("keydown", (e: KeyboardEvent) => { if (e.ctrlKey && e.altKey && e.code === "KeyP") { this.worker.postMessage("download"); + } else if(e.ctrlKey && e.altKey && e.shiftKey && e.code === "KeyR") { + const iframe = document.getElementById("interface") as HTMLIFrameElement; + iframe.src = `/wg-${this.id}/recovery`; } }) }