Skip to content

Use arrow keys to change focused comment in CommentThread overlay - #83089

Merged
Rachel Macfarlane (RMacfarlane) merged 2 commits into
masterfrom
jackson/arrow-key-comment-thread
Oct 24, 2019
Merged

Rachel Macfarlane (RMacfarlane) merged 2 commits into
masterfrom
jackson/arrow-key-comment-thread

Conversation

@JacksonKearl

Copy link
Copy Markdown
Contributor

Fixes microsoft/vscode-pull-request-github#123. Allows navigating comment threads by using arrow keys, then tabbing to the action bar items. This is in line with the extensions viewlet's accessibility model.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice! Just had a couple of comments

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM!

@RMacfarlane
Rachel Macfarlane (RMacfarlane) deleted the jackson/arrow-key-comment-thread branch October 24, 2019 18:35
this._commentsElement.setAttribute('role', 'presentation');
this._commentsElement.tabIndex = 0;

dom.addDisposableListener(this._commentsElement, dom.EventType.KEY_DOWN, (e) => {

@rebornix Peng Lyu (rebornix) Oct 24, 2019 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It might need to added to this._disposables.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Peng Lyu (@rebornix) done, thanks!

@github-actions github-actions Bot locked and limited conversation to collaborators Mar 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use arrow key instead of tab to navigate inside a comment thread

3 participants