]> cat aescling's git repositories - mastodon.git/commitdiff
fix(status_list): Use correct keys for keyboard navigation (#4487)
authorSorin Davidoi <sorin.davidoi@gmail.com>
Wed, 2 Aug 2017 11:09:09 +0000 (13:09 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 2 Aug 2017 11:09:09 +0000 (13:09 +0200)
app/javascript/mastodon/components/status_list.js

index e945e878c96a697694ac232c94e1f7b4ec7b8993..ca443c286aac64c9d608467cf882d375580c14d6 100644 (file)
@@ -105,7 +105,7 @@ export default class StatusList extends ImmutablePureComponent {
   }
 
   handleKeyDown = (e) => {
-    if (['PageDown', 'PageUp', 'End', 'Home'].includes(e.key)) {
+    if (['PageDown', 'PageUp'].includes(e.key) || (e.ctrlKey && ['End', 'Home'].includes(e.key))) {
       const article = (() => {
         switch (e.key) {
         case 'PageDown':