diff --git a/README.md b/README.md index 864b56aa1..2c4aac950 100644 --- a/README.md +++ b/README.md @@ -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. - 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. -- 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 `jump_to_prompt` keybinding can be used to scroll the terminal window forward and back through prompts. diff --git a/src/Surface.zig b/src/Surface.zig index 149a2c5eb..57f1138cb 100644 --- a/src/Surface.zig +++ b/src/Surface.zig @@ -2378,7 +2378,7 @@ pub fn mouseButtonCallback( // Triple click, select the line under our mouse 3 => { - const sel_ = if (mods.ctrl) + const sel_ = if (mods.ctrlOrSuper()) self.io.terminal.screen.selectOutput(pin.*) else self.io.terminal.screen.selectLine(.{ .pin = pin.* });