Skip to content

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

specify shift in keyboard shortcuts cheatsheet

Rigel Kenta157b3a32225
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts
index d4841a69b0..8354a87249 100644
--- a/client/src/app/app.component.ts
+++ b/client/src/app/app.component.ts
@@ -157,7 +157,7 @@ export class AppComponent implements OnInit {
this.router.navigate([ '/videos/upload' ])
return false
}, undefined, 'Go to the videos upload page'),
- new Hotkey('T', (event: KeyboardEvent): boolean => {
+ new Hotkey('shift+t', (event: KeyboardEvent): boolean => {
this.themeService.toggleDarkTheme()
return false
}, undefined, 'Toggle Dark theme')
diff --git a/client/src/app/videos/+video-watch/video-watch.component.ts b/client/src/app/videos/+video-watch/video-watch.component.ts
index 768a08d42f..834428fa45 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/videos/+video-watch/video-watch.component.ts
@@ -122,15 +122,15 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
})
this.hotkeys = [
- new Hotkey('L', (event: KeyboardEvent): boolean => {
+ new Hotkey('shift+l', (event: KeyboardEvent): boolean => {
this.setLike()
return false
}, undefined, 'Like the video'),
- new Hotkey('D', (event: KeyboardEvent): boolean => {
+ new Hotkey('shift+d', (event: KeyboardEvent): boolean => {
this.setDislike()
return false
}, undefined, 'Dislike the video'),
- new Hotkey('S', (event: KeyboardEvent): boolean => {
+ new Hotkey('shift+s', (event: KeyboardEvent): boolean => {
this.subscribeButton.subscribed ?
this.subscribeButton.unsubscribe() :
this.subscribeButton.subscribe()