You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Auto Reveal and Focus On Reveal both being enabled causes editors to lose focus when iterating through them #858
If tree-view package disabled, it works fine, but if it's not, when switching between tabs when pressing ctrl+tab it loses the cursor focus. I'd needed to click with my mouse to get cursor focus back.
Repro Steps
Launch Atom in your local atom repository
Open Settings View using Cmd+, on macOS or Ctrl+, on other platforms
Click the Packages tab
Search for "tree-view"
Click the Settings button in the tree-view package card
Ensure that "Auto Reveal" and "Focus On Reveal" are both enabled
Open multiple files from the Tree View
Use Ctrl+Tab or Ctrl+Shift+Tab to iterate through the tabs
Actual: Tree View will have the focus Expected: Editor should have the focus. The two options (Auto Reveal and Focus on Reveal) should be worded so it is clear that Focus on Reveal is only supposed to affect the behavior of the tree-view:reveal-active-file command.
Yeah, I'm not sure what the intended behavior is since changing tabs in any other way does not make the tree-view steal focus but the combination of these two settings sounds like it should produce this behavior even if it is a really annoying one.
I accidentally stumbled upon this myself because Focus on reveal is the default option I think, and only effective when you run Tree View:Reveal Active File.
changed the title [-]Lose focus when switching tabs[/-][+]Auto Reveal and Focus On Reveal both being enabled causes editors to lose focus when iterating through them[/+]on Oct 6, 2016
I've added some repro steps to make the description more clear. Given that there isn't a better behavior proposal, I'm inclined to close this as wontfix.
The original PR for this functionality #715 indicates that "Focus On Reveal" was only intended to affect the behavior of the tree-view:reveal-active-file command. So I've classified this as a bug.
My usecase is: I want the tree-view to be open all the time, but with the "auto-reveal" feature, the tree-view captures focus. When I open a file or switch the active text editor, all I was to happen is to reveal the file, but the focus should still remain on the text editor. Also, unless I have the "Focus on reveal" is checked, my expected behavior is that the tree-view did not get into the stack of previous focused elements. This is evident if i do ctrl + tab to switch based on editor history.
Activity
Ben3eeE commentedon Jun 2, 2016
It looks like you have auto reveal set to true, and in combination with focus on reveal this is probably expected. See #850.
inancgumus commentedon Jun 8, 2016
Hey @Ben3eeE Thanks for that. That is the same problem. But, it's annoying although it's expected.
Ben3eeE commentedon Jun 8, 2016
Yeah, I'm not sure what the intended behavior is since changing tabs in any other way does not make the tree-view steal focus but the combination of these two settings sounds like it should produce this behavior even if it is a really annoying one.
I accidentally stumbled upon this myself because Focus on reveal is the default option I think, and only effective when you run
Tree View:Reveal Active File.[-]Lose focus when switching tabs[/-][+]Auto Reveal and Focus On Reveal both being enabled causes editors to lose focus when iterating through them[/+]lee-dohm commentedon Oct 6, 2016
I've added some repro steps to make the description more clear. Given that there isn't a better behavior proposal, I'm inclined to close this as
wontfix.lee-dohm commentedon Oct 6, 2016
The original PR for this functionality #715 indicates that "Focus On Reveal" was only intended to affect the behavior of the
tree-view:reveal-active-filecommand. So I've classified this as a bug.vraravam commentedon Apr 13, 2017
My usecase is: I want the tree-view to be open all the time, but with the "auto-reveal" feature, the tree-view captures focus. When I open a file or switch the active text editor, all I was to happen is to reveal the file, but the focus should still remain on the text editor. Also, unless I have the "Focus on reveal" is checked, my expected behavior is that the tree-view did not get into the stack of previous focused elements. This is evident if i do
ctrl + tabto switch based on editor history.