about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorSorin Davidoi <sorin.davidoi@gmail.com>2017-08-02 13:09:09 +0200
committerEugen Rochko <eugen@zeonfederated.com>2017-08-02 13:09:09 +0200
commitac5373681420dacbe9655da20c303aaa33644e7c (patch)
tree3d0a2836eab8c8951d23dc19bda0942e8fefea38 /app/javascript
parent8c0e78ae436de7d24f808f28ee2ab6facb0451db (diff)
fix(status_list): Use correct keys for keyboard navigation (#4487)
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/mastodon/components/status_list.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/status_list.js b/app/javascript/mastodon/components/status_list.js
index e945e878c..ca443c286 100644
--- a/app/javascript/mastodon/components/status_list.js
+++ b/app/javascript/mastodon/components/status_list.js
@@ -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':