Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
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

Open

Description

@inancgumus

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.

lose-focus-when-switching-tabs

Repro Steps

  1. Launch Atom in your local atom repository
  2. Open Settings View using Cmd+, on macOS or Ctrl+, on other platforms
  3. Click the Packages tab
  4. Search for "tree-view"
  5. Click the Settings button in the tree-view package card
  6. Ensure that "Auto Reveal" and "Focus On Reveal" are both enabled
  7. Open multiple files from the Tree View
  8. 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.
image

Activity

  1. Ben3eeE commented on Jun 2, 2016

    @Ben3eeE
    Contributor

    It looks like you have auto reveal set to true, and in combination with focus on reveal this is probably expected. See #850.

  2. inancgumus commented on Jun 8, 2016

    @inancgumus
    Author

    Hey @Ben3eeE Thanks for that. That is the same problem. But, it's annoying although it's expected.

  3. Ben3eeE commented on Jun 8, 2016

    @Ben3eeE
    Contributor

    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.

  4. 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
  5. lee-dohm commented on Oct 6, 2016

    @lee-dohm
    Contributor

    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.

  6. lee-dohm commented on Oct 6, 2016

    @lee-dohm
    Contributor

    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.

  7. vraravam commented on Apr 13, 2017

    @vraravam

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions