editor: Correct "Toggle Excerpt Fold" tip on macOS (#38487)

Show `"Option+click to toggle all"` instead of `"Alt+click to toggle
all" on macOS.

<img width="546" height="212" alt="Screenshot 2025-09-19 at 10 16 11"
src="https://github.com/user-attachments/assets/b1052b7c-349f-4a11-892b-988cfd2ff365"
/>

Release Notes:

- N/A
This commit is contained in:
Bartosz Kaszubowski 2025-09-19 15:41:52 +02:00 committed by GitHub
parent 9e6f1d5a6e
commit a3da66cec0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3838,7 +3838,11 @@ impl EditorElement {
Tooltip::with_meta_in(
"Toggle Excerpt Fold",
Some(&ToggleFold),
"Alt+click to toggle all",
if cfg!(target_os = "macos") {
"Option+click to toggle all"
} else {
"Alt+click to toggle all"
},
&focus_handle,
window,
cx,