Skip to content

Use j/k instead of arrow keys for page navigation #2648

@knowler

Description

@knowler

The default function of arrow keys on a web page is for scroll, when we hijack these for custom functionality like moving focus between packages on the search results page, we’re overriding this more essential function. Instead, we should consider remapping our functionality to j and k (vim motions) as they are fairly common for this purpose in other web apps (e.g. GitHub /notification; Mastodon; the app that used to be called Twitter).

If anyone picks this up, please keep in mind that user interface components that require arrow key navigation for focus management are exempt from this change (e.g. a correctly coded listbox will use arrow keys for navigating results; arrow keys are how a tabbed interface is controlled).

Metadata

Metadata

Assignees

No one assigned

    Labels

    a11yRelated to accessibility and inclusiongood first issueGood for newcomersuxRelated to wider UX decisions

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions