From a157b3a322258ee5792322cf4a79437ba8d5cc2d Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Tue, 11 Sep 2018 14:13:02 +0200 Subject: [PATCH] specify shift in keyboard shortcuts cheatsheet --- client/src/app/app.component.ts | 2 +- client/src/app/videos/+video-watch/video-watch.component.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index d4841a69b..8354a8724 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 768a08d42..834428fa4 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() -- 2.41.0