**Ctrl+L on Windows and Cmd+L on macOS** do not attach the current editor selection to chat as documented. This is a cross-platform issue: I reproduce it on **Windows 10/11** and **macOS** (not limited to one OS). Chat may open without the selected code, or another command steals the shortcut.
Steps to Reproduce
1. Open Cursor with a code file in the editor (Windows or Mac).
2. Select one or more lines.
3. Press **Ctrl+L** (Windows) or **Cmd+L** (macOS).
Expected Behavior
Per keyboard shortcuts docs: with a selection, Cmd/Ctrl+L should add that selection to chat (or open/focus chat with selection as context).
Operating System
Windows 10/11 and macOS (reproduced on both)
Version Information
macOS reporter: Cursor 3.25.6 (commit f0df777c412b670d09e3eaf214967d779e67c080). Same broken behavior confirmed on Windows 10/11 with Cursor 3.25.x.
Additional Information
Technical: default binding for aichat.newchataction uses Cmd/Ctrl+L with when: !isGlass. In Glass/empty-window sessions isGlass is true, so the add-selection binding is disabled on **both platforms**. Ctrl+L / Cmd+L can also be taken by composer.sendToAgent when the inline prompt bar is focused (weight 600).
Suggested fix: enable Cmd/Ctrl+L for selection→chat when isGlass (editor/terminal focus), or remove the !isGlass guard so behavior matches docs on Windows and Mac.
Workaround: user keybindings.json — bind aichat.newchataction with when isGlass && editorTextFocus (use ctrl+l on Windows, cmd+l on macOS).
First, about the !isGlass condition you found: that’s there on purpose. In Agents Window, Cmd/Ctrl+L has its own separate binding that adds the selection from the open file or terminal to the agent chat. So this condition doesn’t disable the default behavior in Agents Window. Your workaround with keybindings.json is fine to keep, it doesn’t break anything. One more thing: if focus is in the inline bar Cmd+K, then Cmd/Ctrl+L sends that prompt to the agent instead of adding the selection. That’s expected.
To understand where it stops working, we need a bit more detail:
Open About Cursor on Windows: Help > About, then send the Layout: line.
Restart Cursor, then open a file from Explorer, not from Changes and not from diff view.
Check that there are no code chips in the chat input.
Select a few lines and press Cmd+L or Ctrl+L on Windows.
Without sending, select another block in the same file and press Cmd/Ctrl+L again.
Did the code get added after step 4 and after step 5? Also, can you confirm if the issue happens when selecting in diff or Changes view instead of a normal file tab? And on Windows, was the terminal focused at any point? There, Ctrl+L goes to the shell by default.
For now, you can also try this: if the chat opens without your code, remove any existing code chips from the input, or send the message, then press Cmd/Ctrl+L again.
A similar case was discussed in this thread:
Take a look in case it matches. Let me know what you find.
Thank you for the response. I won’t have access to my windows machine for a while so can’t test it. But on mac the issue seems to be limited to canvas not only Glass !isGlass on code files.
Repro: Agents layout, open a Canvas tab (agent-produced .canvas.tsx / Canvas surface), select text in the canvas preview.
Actual: No floating “Ask Agent” / “Add to Side Chat”; Cmd+L does nothing useful (no selection chip in chat).
Contrast: Markdown preview tabs (e.g. SKILL.md) show the floater and Cmd+L works; normal code file tabs behave differently again.
Looks like add-to-chat only targets markdown-preview DOM + file editor tabs, not the Canvas webview surface.
Hey, thanks, that really narrows it down. So it looks like the issue isn’t with Cmd+L in general, but specifically with the Canvas tab preview in the Agents Window. When text is selected there, there’s no floater and Cmd+L doesn’t add a chip to the chat, while in Markdown preview everything works. I’ve passed this on to the team along with your steps and version 3.25.6.
For now, a couple workarounds:
copy the needed text from Canvas with Cmd+C and paste it into the chat manually
or switch to the Canvas source file .canvas.tsx, select the needed part there, and press Cmd+L
One quick follow-up: you mentioned that in regular code file tabs in the Agents Window, the behavior is different again. What happens there? If you open a file from Explorer, select some lines, and press Cmd+L, does the code get added to the chat or not?
When you get to a Windows machine, let me know if anything besides Canvas reproduces there too. I’ll post here when there’s an update.