Skip to content

Commit ad0fb7c

Browse files
Fix shift enter when cell are defined (#4541)
1 parent 4e8cba5 commit ad0fb7c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

news/2 Fixes/4413.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix shift enter to send selection when cells are defined.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@
110110
{
111111
"command": "python.datascience.execSelectionInteractive",
112112
"key": "shift+enter",
113-
"when": "editorFocus && editorLangId == python && !findInputFocussed && !replaceInputFocussed && python.datascience.ownsSelection && python.datascience.featureenabled"
113+
"when": "editorFocus && editorHasSelection && editorLangId == python && !findInputFocussed && !replaceInputFocussed && python.datascience.ownsSelection && python.datascience.featureenabled"
114114
},
115115
{
116116
"command": "python.datascience.runcurrentcelladvance",
117117
"key": "shift+enter",
118-
"when": "editorFocus && python.datascience.hascodecells && python.datascience.featureenabled"
118+
"when": "editorFocus && !editorHasSelection && python.datascience.hascodecells && python.datascience.featureenabled"
119119
}
120120
],
121121
"commands": [

0 commit comments

Comments
 (0)