Skip to content

Fix tabbing in trees - #32502

Merged
roblourens merged 2 commits into
masterfrom
amqi/tree-tabs
Aug 15, 2017
Merged

roblourens merged 2 commits into
masterfrom
amqi/tree-tabs

Conversation

@Lixire

Copy link
Copy Markdown
Contributor

PR 2: Electric Boogaloo

I changed the tab index to -1 instead of not setting it at all so it can still be focusable which fixes the quick navigate feature.

  • Changes the tabbing in quick-open-tree so that the actionbar items can be reached in one tab instead of two (where the first tab was to focus the whole tree).
  • Keeps quickopen open when pressing up or down with an action bar item focused

Fixes #31835 and #31836

@Lixire Amy Qiu (Lixire) added terminal General terminal issues that don't fall under another label quick-pick Quick-pick widget issues labels Aug 14, 2017
@Lixire Amy Qiu (Lixire) added this to the August 2017 milestone Aug 14, 2017
@Lixire Amy Qiu (Lixire) self-assigned this Aug 14, 2017
this.domNode = document.createElement('div');
this.domNode.className = `monaco-tree no-focused-item monaco-tree-instance-${this.instance}`;
this.domNode.tabIndex = 0;
this.domNode.tabIndex = context.options.preventRootFocus ? -1 : 0;

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.

Is preventRootFocus still a good name for the option? And were you able to figure out why we need the tabIndex for quick navigate?

@bpasero Benjamin Pasero (bpasero) left a comment

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.

Thanks, seems to work nicely 👍

}

this.applyStyles();

@bpasero Benjamin Pasero (bpasero) Aug 15, 2017 •

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.

Amy Qiu (@Lixire) I prefer to keep the newline here, looks logically too close otherwise imho:

image

@roblourens
roblourens merged commit 3cd2d7c into master Aug 15, 2017
@bpasero
Benjamin Pasero (bpasero) deleted the amqi/tree-tabs branch August 15, 2017 17:56
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

quick-pick Quick-pick widget issues terminal General terminal issues that don't fall under another label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Terminal Switcher: Rename should be reachable with first tab

4 participants