diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2018-09-02 20:54:23 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-09-03 08:49:29 +0200 |
commit | 20d211990425af8d9bb5c8eba204d2b485bcd19a (patch) | |
tree | 020584a5712b153dc1d7e965287c7f384ae722b1 /client/src/app/app.component.ts | |
parent | 9a2f7ea799fdd52b24245e94d01f12fabd6efc02 (diff) | |
download | PeerTube-20d211990425af8d9bb5c8eba204d2b485bcd19a.tar.gz PeerTube-20d211990425af8d9bb5c8eba204d2b485bcd19a.tar.zst PeerTube-20d211990425af8d9bb5c8eba204d2b485bcd19a.zip |
add like, dislike and subscribe button hotkeys
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r-- | client/src/app/app.component.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index 7bab2e2fd..40eac7fb8 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts | |||
@@ -128,27 +128,27 @@ export class AppComponent implements OnInit { | |||
128 | document.getElementById('search-video').focus() | 128 | document.getElementById('search-video').focus() |
129 | return false // Prevent bubbling | 129 | return false // Prevent bubbling |
130 | }, undefined, 'Focus the search bar'), | 130 | }, undefined, 'Focus the search bar'), |
131 | new Hotkey('g+s', (event: KeyboardEvent): boolean => { | 131 | new Hotkey('g s', (event: KeyboardEvent): boolean => { |
132 | this.router.navigate([ '/videos/subscriptions' ]) | 132 | this.router.navigate([ '/videos/subscriptions' ]) |
133 | return false | 133 | return false |
134 | }, undefined, 'Go to the subscriptions videos page'), | 134 | }, undefined, 'Go to the subscriptions videos page'), |
135 | new Hotkey('g+o', (event: KeyboardEvent): boolean => { | 135 | new Hotkey('g o', (event: KeyboardEvent): boolean => { |
136 | this.router.navigate([ '/videos/overview' ]) | 136 | this.router.navigate([ '/videos/overview' ]) |
137 | return false | 137 | return false |
138 | }, undefined, 'Go to the videos overview page'), | 138 | }, undefined, 'Go to the videos overview page'), |
139 | new Hotkey('g+t', (event: KeyboardEvent): boolean => { | 139 | new Hotkey('g t', (event: KeyboardEvent): boolean => { |
140 | this.router.navigate([ '/videos/trending' ]) | 140 | this.router.navigate([ '/videos/trending' ]) |
141 | return false | 141 | return false |
142 | }, undefined, 'Go to the trending videos page'), | 142 | }, undefined, 'Go to the trending videos page'), |
143 | new Hotkey('g+r', (event: KeyboardEvent): boolean => { | 143 | new Hotkey('g r', (event: KeyboardEvent): boolean => { |
144 | this.router.navigate([ '/videos/recently-added' ]) | 144 | this.router.navigate([ '/videos/recently-added' ]) |
145 | return false | 145 | return false |
146 | }, undefined, 'Go to the recently added videos page'), | 146 | }, undefined, 'Go to the recently added videos page'), |
147 | new Hotkey('g+l', (event: KeyboardEvent): boolean => { | 147 | new Hotkey('g l', (event: KeyboardEvent): boolean => { |
148 | this.router.navigate([ '/videos/local' ]) | 148 | this.router.navigate([ '/videos/local' ]) |
149 | return false | 149 | return false |
150 | }, undefined, 'Go to the local videos page'), | 150 | }, undefined, 'Go to the local videos page'), |
151 | new Hotkey('g+u', (event: KeyboardEvent): boolean => { | 151 | new Hotkey('g u', (event: KeyboardEvent): boolean => { |
152 | this.router.navigate([ '/videos/upload' ]) | 152 | this.router.navigate([ '/videos/upload' ]) |
153 | return false | 153 | return false |
154 | }, undefined, 'Go to the videos upload page') | 154 | }, undefined, 'Go to the videos upload page') |