logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: ac5373681420dacbe9655da20c303aaa33644e7c
parent: 8c0e78ae436de7d24f808f28ee2ab6facb0451db
Author: Sorin Davidoi <sorin.davidoi@gmail.com>
Date:   Wed,  2 Aug 2017 13:09:09 +0200

fix(status_list): Use correct keys for keyboard navigation (#4487)


Diffstat:

Mapp/javascript/mastodon/components/status_list.js2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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':