Skip to content

Unfocused editors should regain focus (be un-dimmed) on scroll #191671

Closed as not planned

Description

@bhavyaus

Testing #191527

In the gif, you can see that after picking a file to be opened in the editor, I can scroll in the dimmed editor. This feels weird to me.

Screen.Recording.2023-08-29.at.10.52.32.AM.mov

Activity

  1. added
    bug
    accessibility
    on Aug 29, 2023
  2. added this to the Backlog milestone on Aug 29, 2023
  3. Tyriar commented on Aug 29, 2023

    @Tyriar
    Contributor

    Right now the feature uses a set of CSS rules, I don't think it would be possible to fix this problem without hooking up some events. For example if we could listen to an editor scroll event and treat it as focused for x seconds after that?

  4. lobsterkatie commented on Aug 30, 2023

    @lobsterkatie

    I can scroll in the dimmed editor. This feels weird to me.

    FWIW, this matches the native behavior in OS X. (Notice how I can scroll in the other Chrome window, even though the one with this issue in it is in front and focused.) I thought it was a little weird when I first discovered it in OS X, too, but you get used to it pretty quickly.

    Screen.Recording.2023-08-30.at.11.28.20.AM.mov
  5. Destroy666x commented on Sep 10, 2023

    @Destroy666x

    It's not the scrolling part which is weird. That's normal in all popular window systems. The dimming part is quite annoying though. It's clear you're using that part of the window and want to see the contents better, IMO.

    So I don't think it should necessarily "regain focus" as the issue suggest, but more like "regain brightness". If not by default then with a "Scrolling unfocused editor disables dimming" kind of setting.

  6. lobsterkatie commented on Sep 13, 2023

    @lobsterkatie

    It's not the scrolling part which is weird. That's normal in all popular window systems. The dimming part is quite annoying though.

    Ah - that makes more sense. Thanks for clarifying.

    I don't think it should necessarily "regain focus" as the issue suggest, but more like "regain brightness". If not by default then with a "Scrolling unfocused editor disables dimming" kind of setting.

    Could be a setting, but FWIW, now that I've started using the feature, I like the way it works currently. The high-level objective of the feature to is make it clear to the user which view will be affected by keyboard input (so I can stop typing git push into random files, for example), and the answer to that question doesn't change if I scroll an unfocused view.

  7. JimGitFE commented on Dec 2, 2023

    @JimGitFE

    In case someone is wondering how to disable Dim Unfocused

    1. Open the Command Palette Ctrl + Shift + P (Windows/Linux)
    2. Type Open Accessibility Settings
    3. Uncheck Accesibility > Dim Unfocused

    As per vscode August Release

    "accessibility.dimUnfocused.enabled": false,
    "accessibility.dimUnfocused.opacity": 1,
  8. added
    workbench-dim-unfocused
    on Dec 19, 2024
  9. Tyriar commented on Dec 19, 2024

    @Tyriar
    Contributor

    Merging into #236576

    /duplicate

  10. added
    *duplicate
    on Dec 19, 2024
  11. vs-code-engineering commented on Dec 19, 2024

    @vs-code-engineering
    Contributor

    Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

    Happy Coding!

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

Metadata

Metadata

Labels

*duplicateaccessibilitybugworkbench-dim-unfocused

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions