diff options
author | Sorin Davidoi <sorin.davidoi@gmail.com> | 2017-08-02 13:09:09 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-08-02 13:09:09 +0200 |
commit | ac5373681420dacbe9655da20c303aaa33644e7c (patch) | |
tree | 3d0a2836eab8c8951d23dc19bda0942e8fefea38 /app/javascript | |
parent | 8c0e78ae436de7d24f808f28ee2ab6facb0451db (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.js | 2 |
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': |