Skip to content

Commit

Permalink
fronten/frame: add key code to load recovery page through remote_access.
Browse files Browse the repository at this point in the history
  • Loading branch information
ffreddow committed Oct 21, 2024
1 parent cc5254d commit 42cbe34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/components/Frame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
}
})
}
Expand Down

0 comments on commit 42cbe34

Please sign in to comment.