specify shift in keyboard shortcuts cheatsheet

This commit is contained in:
Rigel Kent 2018-09-11 14:13:02 +02:00
parent e3f7f600e8
commit a157b3a322
No known key found for this signature in database
GPG Key ID: EA12971B0E438F36
2 changed files with 4 additions and 4 deletions

View 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')

View 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()