Skip to content

Difference in "force selection" modifier key across platforms #4329

Description

@jaminthorns

I just encountered the inconsistency of the "force selection" modifier across Windows/Linux and macOS and personally found that a bit jarring:

public shouldForceSelection(event: MouseEvent): boolean {
if (Browser.isMac) {
return event.altKey && this._optionsService.rawOptions.macOptionClickForcesSelection;
}
return event.shiftKey;
}

I use VS Code on both Windows and macOS, and it would be nice if the modifier was the same across platforms. I couldn't find any technical reason this was done, so I'm guessing it was conventional. iTerm uses alt for this, and since iTerm has a majority "market share" on macOS terminals (at least in my experience working on macOS over the past few years), I'm assuming the modifier choice came from there.

Other cross-platform terminals seem to have settled on using shift as the modifier across the board, though:

I know that implementing #1536 would fix this, but that seems like a reasonably large endeavor. Is this something that could be resolved with a smaller change?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions