Skip to content

The explorer context menu should only appear on shift+click #6113

Open

Description

Follow-up from #6100.

The Explorer context menu is notoriously cluttered. We shouldn't add to that clutter if we can avoid it. This issue represents me taking the time to investigate how exactly to make the menu only appear on shift+right click, not just right click.

Activity

  1. ghost added
    Needs-Triage
    on May 21, 2020
  2. ghost added
    Needs-Tag-Fix
    on May 21, 2020
  3. added
    Area-UserInterface
    Product-Terminal
    Issue-Task
    on May 21, 2020
  4. ghost removed
    Needs-Tag-Fix
    on May 21, 2020
  5. removed
    Needs-Triage
    on May 21, 2020
  6. added
    Area-ShellExtension
    and removed
    Area-UserInterface
    on May 28, 2020
  7. ghost added
    Needs-Tag-Fix
    on May 28, 2020
  8. zadjii-msft commented on Jun 1, 2020

    @zadjii-msft
    MemberAuthor

    Alright so we took a quick peek through the code and we're not sure exactly how to do this. Fortunately, PowerToys does seem to do something similar:

    https://github.com/microsoft/PowerToys/blob/d16ebba9e0f06e7a0d41d981aeb1fd0a78192dc0/src/modules/powerrename/dll/PowerRenameExt.cpp#L60-L110

    Looks like they implement another interface, IContextMenu. If someone in the community was passionate about decluttering the context menu, we'd definitely appreciate a similar PR 😄

    EDIT: As mentioned in an offline thread:

    You should stick to the IExplorerCommand implementation and avoid IContextMenu if possible.

    and also mentioned here:

    If you return ECS_HIDDEN as a function of the keyboard state (if (GetKeyState(VK_SHIFT) < 0) or GetAsyncKeyState(), read the docs on both, I'm not sure which is the right one to use in this case) this can be hidden conditionally. This depends on the shell calling your handler coincident with presenting the UI. I think that is always true but might not always be. Pay attention to this issue and lets discuss with the File Explorer owners.

  9. added
    Help Wanted
    on Jun 1, 2020
  10. added
    Area-ShellExtension
    and removed
    Area-ShellExtension
    on Jun 19, 2020
  11. ghost removed
    Needs-Tag-Fix
    on Jun 19, 2020
  12. rescenic commented on Jun 26, 2020

    @rescenic

    Yeah, it's ugly long name. I am trying to disable that context menu. But I can't find Windows Terminal Preview context menu item using Nirsoft tools, like ShellExView and ShellMenuView.
    img

  13. igorakkerman commented on Jul 4, 2020

    @igorakkerman

    Please make this configurable, Terminal is a core application in my work and should not be a secondary function.

  14. ghost added
    In-PR
    on Mar 3, 2021
  15. ghost removed
    In-PR
    on May 19, 2022
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

    Area-ShellExtensionHelp WantedIssue-TaskProduct-Terminal

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions