specify shift in keyboard shortcuts cheatsheet
authorRigel Kent <sendmemail@rigelk.eu>
Tue, 11 Sep 2018 12:13:02 +0000 (14:13 +0200)
committerRigel Kent <sendmemail@rigelk.eu>
Tue, 11 Sep 2018 12:18:59 +0000 (14:18 +0200)
client/src/app/app.component.ts
client/src/app/videos/+video-watch/video-watch.component.ts

index d4841a69b0d9fcff5d10f803d99d14813c01b509..8354a872491dce38f6b110aae9fed1ed5a090728 100644 (file)
@@ -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')
index 768a08d42f9d8cbb0718a91fd496676c4db72816..834428fa45ce5d91c6186418361c4bc09b8bb876 100644 (file)
@@ -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()