macOS select output is cmd+tripleclick not control anymore

Fixes #1920

Ctrl interferes with context menus.
This commit is contained in:
Mitchell Hashimoto
2024-07-07 14:01:20 -07:00
parent 2ecb8e4c94
commit 31d5384920
2 changed files with 2 additions and 2 deletions

View File

@ -199,7 +199,7 @@ The currently supported shell integration features in Ghostty:
- We do not confirm close for windows where the cursor is at a prompt. - We do not confirm close for windows where the cursor is at a prompt.
- New terminals start in the working directory of the previously focused terminal. - New terminals start in the working directory of the previously focused terminal.
- Complex prompts resize correctly by allowing the shell to redraw the prompt line. - Complex prompts resize correctly by allowing the shell to redraw the prompt line.
- Triple-click while holding control to select the output of a command. - Triple-click while holding control (Linux) or command (macOS) to select the output of a command.
- The cursor at the prompt is turned into a bar. - The cursor at the prompt is turned into a bar.
- The `jump_to_prompt` keybinding can be used to scroll the terminal window - The `jump_to_prompt` keybinding can be used to scroll the terminal window
forward and back through prompts. forward and back through prompts.

View File

@ -2378,7 +2378,7 @@ pub fn mouseButtonCallback(
// Triple click, select the line under our mouse // Triple click, select the line under our mouse
3 => { 3 => {
const sel_ = if (mods.ctrl) const sel_ = if (mods.ctrlOrSuper())
self.io.terminal.screen.selectOutput(pin.*) self.io.terminal.screen.selectOutput(pin.*)
else else
self.io.terminal.screen.selectLine(.{ .pin = pin.* }); self.io.terminal.screen.selectLine(.{ .pin = pin.* });