From 8dcc237ef46081cf4b12aa982b3d1b7892b2db94 Mon Sep 17 00:00:00 2001 From: Don Jayamanne Date: Wed, 13 Jun 2018 18:05:05 -0700 Subject: [PATCH 1/2] Change keyboard shortcut for execSelectionInTerminal to Shit+Enter --- news/2 Fixes/1875.md | 1 + package.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 news/2 Fixes/1875.md diff --git a/news/2 Fixes/1875.md b/news/2 Fixes/1875.md new file mode 100644 index 000000000000..d687dcf63a14 --- /dev/null +++ b/news/2 Fixes/1875.md @@ -0,0 +1 @@ +Change keyboard shortcut for `Run Selection/Line in Python Terminal` to `Shit+Enter`. diff --git a/package.json b/package.json index 58851c4dcdc6..6a82d640031b 100644 --- a/package.json +++ b/package.json @@ -98,8 +98,8 @@ "keybindings": [ { "command": "python.execSelectionInTerminal", - "key": "ctrl+enter", - "when": "editorFocus && editorHasSelection && editorLangId == python" + "key": "shift+enter", + "when": "editorFocus && editorLangId == python" } ], "commands": [ From 713078c09358d04173d888dc458b0cf34d3d82c8 Mon Sep 17 00:00:00 2001 From: Don Jayamanne Date: Thu, 14 Jun 2018 08:59:51 -0700 Subject: [PATCH 2/2] Update condition for context menu --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6a82d640031b..b3d56f1cd7ea 100644 --- a/package.json +++ b/package.json @@ -247,7 +247,7 @@ { "command": "python.execSelectionInTerminal", "group": "Python", - "when": "editorHasSelection && editorLangId == python" + "when": "editorFocus && editorLangId == python" }, { "command": "python.execSelectionInDjangoShell",