From 395e42e593d659d1a88a7218641dc488e207c1fb Mon Sep 17 00:00:00 2001 From: daniel-lxs Date: Mon, 15 Sep 2025 17:22:50 -0500 Subject: [PATCH 1/3] feat: add keyboard shortcut for 'Add to Context' action (package.json only) - Added keyboard shortcut configuration in package.json: - macOS: Cmd+' - Windows/Linux: Ctrl+' - Shortcut is only active when editor has text selection - Removed all code implementation per review feedback --- src/package.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/package.json b/src/package.json index ad47fa6889d..f0c2d93c45d 100644 --- a/src/package.json +++ b/src/package.json @@ -302,6 +302,16 @@ } ] }, + "keybindings": [ + { + "command": "roo-cline.addToContext", + "key": "cmd+'", + "mac": "cmd+'", + "win": "ctrl+'", + "linux": "ctrl+'", + "when": "editorTextFocus && editorHasSelection" + } + ], "submenus": [ { "id": "roo-cline.contextMenu", From 7e417397a69964e204b9b92d1758ab810b6057b6 Mon Sep 17 00:00:00 2001 From: daniel-lxs Date: Mon, 15 Sep 2025 18:20:05 -0500 Subject: [PATCH 2/3] feat: change keyboard shortcut to cmd+y for all platforms - Changed shortcut from cmd+' (mac) / ctrl+' (win/linux) to cmd+y for all platforms - Provides consistent keybinding across all operating systems --- src/package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/package.json b/src/package.json index f0c2d93c45d..687c9ed9421 100644 --- a/src/package.json +++ b/src/package.json @@ -305,10 +305,10 @@ "keybindings": [ { "command": "roo-cline.addToContext", - "key": "cmd+'", - "mac": "cmd+'", - "win": "ctrl+'", - "linux": "ctrl+'", + "key": "cmd+y", + "mac": "cmd+y", + "win": "cmd+y", + "linux": "cmd+y", "when": "editorTextFocus && editorHasSelection" } ], From be146d816901aef2a53ba0274480393d770d3049 Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Mon, 15 Sep 2025 22:51:31 -0400 Subject: [PATCH 3/3] Use ctrl for win/linux --- src/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/package.json b/src/package.json index 687c9ed9421..59ce7ec27ad 100644 --- a/src/package.json +++ b/src/package.json @@ -307,8 +307,8 @@ "command": "roo-cline.addToContext", "key": "cmd+y", "mac": "cmd+y", - "win": "cmd+y", - "linux": "cmd+y", + "win": "ctrl+y", + "linux": "ctrl+y", "when": "editorTextFocus && editorHasSelection" } ],