Skip to content

Add cycle-lists-with-keyboard-shortcuts feature - #2140

Merged
fregante merged 4 commits into
refined-github:masterfrom
notlmn:cycling-lists
Jun 21, 2019
Merged

fregante merged 4 commits into
refined-github:masterfrom
notlmn:cycling-lists

Conversation

@notlmn

@notlmn notlmn commented Jun 9, 2019 •

Copy link
Copy Markdown
Contributor

Closes #1450.

  • Makes use of custom events emitted by GitHub to detect and add events to input elements.
  • As opposed to Add arrow-up support when choosing labels in a PR #2008, this PR adds keydown event listeners to only search fields, which is also what GitHub uses (you cannot use up and down arrow keys to navigate when the search field is not focused).
  • Supports cycling through labels, projects, milestones and all other sidebar elements, even when a search filter is applied.

Preview

labels-cycling

Test

Can be tested on any issue or PR that you have permissions to edit.

@sindresorhus

sindresorhus commented Jun 19, 2019 •

Copy link
Copy Markdown
Member

The functionality seems to work well.

Needs to be mentioned in the readme.

@notlmn

notlmn commented Jun 20, 2019

Copy link
Copy Markdown
Contributor Author

Needs to be mentioned in the readme.

Done!

@fregante fregante left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add yourself to CODEOWNERS?

@fregante
fregante merged commit de42edc into refined-github:master Jun 21, 2019
@fregante fregante mentioned this pull request Jun 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Support pressing arrow-up when choosing labels

3 participants