specify shift in keyboard shortcuts cheatsheet
This commit is contained in:
parent
e3f7f600e8
commit
a157b3a322
|
@ -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')
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue