Skip to content

Both Focus and Select tree item on triggering secondary action - #1388

Merged
Rachel Macfarlane (RMacfarlane) merged 2 commits into
masterfrom
jackson/focus-and-select
Oct 17, 2019
Merged

Both Focus and Select tree item on triggering secondary action#1388
Rachel Macfarlane (RMacfarlane) merged 2 commits into
masterfrom
jackson/focus-and-select

Conversation

@JacksonKearl

Copy link
Copy Markdown
Contributor

Fixes #1217

Previously, on triggering a secondary action, the tree view item would gain selected status, but not focused status. Additionally, previously, the 'openFile' command would move focus to the editor, hiding this issue when git.openDiffOnClick was true, and reducing keyboard accessibility (#198).

This PR forces the selected item to also gain focus, and prohibits focus from transferring to editor on click.

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.

Nice! I think there's one other place we need to update - the openDescription and openDescriptionToTheSide commands are only passing select: true to reveal

@JacksonKearl

Copy link
Copy Markdown
Contributor Author

Rachel Macfarlane (@RMacfarlane) done!

@RMacfarlane
Rachel Macfarlane (RMacfarlane) deleted the jackson/focus-and-select branch October 17, 2019 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants