Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Add "g l" hotkey to go to the login page

Chocobozzze70f917edd9f
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts
index 2fa7d5874a..7c5af5c075 100644
--- a/client/src/app/app.component.ts
+++ b/client/src/app/app.component.ts
@@ -8,6 +8,7 @@ import {
HotkeysService,
MarkdownService,
PeerTubeRouterService,
+ RedirectService,
RouterStatusService,
ScreenService,
ScrollService,
@@ -84,6 +85,7 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {
private userLocalStorage = inject(UserLocalStorageService)
private peertubeModal = inject(PeertubeModalService)
private routerStatus = inject(RouterStatusService)
+ private redirectService = inject(RedirectService)
menu = inject(MenuService)
@@ -382,7 +384,12 @@ export class AppComponent implements OnInit, AfterViewInit, OnDestroy {
new Hotkey('g u', () => {
this.router.navigate([ '/videos/upload' ])
return false
- }, $localize`Go to the "Publish video" page`)
+ }, $localize`Go to the "Publish video" page`),
+
+ new Hotkey('g l', () => {
+ this.redirectService.redirectToLogin()
+ return false
+ }, $localize`Go to the login page`)
])
}