Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@knowler

Description

@knowler
Issue body actions

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).

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.