@@ -22,7 +22,7 @@ import { IInstantiationService } from '../../../../../platform/instantiation/com
22
22
import { ActiveEditorContext } from '../../../../common/contextkeys.js' ;
23
23
import { EditorResourceAccessor , SideBySideEditor , TEXT_DIFF_EDITOR_ID } from '../../../../common/editor.js' ;
24
24
import { ChatContextKeys } from '../../common/chatContextKeys.js' ;
25
- import { NOTEBOOK_CELL_LIST_FOCUSED } from '../../../notebook/common/notebookContextKeys.js' ;
25
+ import { NOTEBOOK_CELL_LIST_FOCUSED , NOTEBOOK_EDITOR_FOCUSED } from '../../../notebook/common/notebookContextKeys.js' ;
26
26
27
27
28
28
abstract class ChatEditingEditorAction extends Action2 {
@@ -176,16 +176,11 @@ abstract class KeepOrUndoAction extends ChatEditingEditorAction {
176
176
: Codicon . discard ,
177
177
f1 : true ,
178
178
keybinding : {
179
- when : EditorContextKeys . focus ,
180
- weight : KeybindingWeight . WorkbenchContrib ,
179
+ when : ContextKeyExpr . or ( EditorContextKeys . focus , NOTEBOOK_EDITOR_FOCUSED ) ,
180
+ weight : KeybindingWeight . WorkbenchContrib + 10 , // win over new-window-action
181
181
primary : _keep
182
- ? KeyMod . CtrlCmd | KeyCode . Enter
183
- : KeyMod . CtrlCmd | KeyCode . Backspace ,
184
- win : {
185
- primary : _keep
186
- ? KeyMod . Alt | KeyCode . Enter
187
- : KeyMod . Alt | KeyCode . Backspace
188
- } ,
182
+ ? KeyMod . CtrlCmd | KeyMod . Shift | KeyCode . KeyY
183
+ : KeyMod . CtrlCmd | KeyMod . Shift | KeyCode . KeyN ,
189
184
} ,
190
185
menu : {
191
186
id : MenuId . ChatEditingEditorContent ,
@@ -245,13 +240,8 @@ abstract class AcceptRejectHunkAction extends ChatEditingEditorAction {
245
240
when : ContextKeyExpr . or ( EditorContextKeys . focus , NOTEBOOK_CELL_LIST_FOCUSED ) ,
246
241
weight : KeybindingWeight . WorkbenchContrib + 1 ,
247
242
primary : _accept
248
- ? KeyMod . CtrlCmd | KeyMod . Shift | KeyCode . Enter
249
- : KeyMod . CtrlCmd | KeyMod . Shift | KeyCode . Backspace ,
250
- win : {
251
- primary : _accept
252
- ? KeyMod . Alt | KeyMod . Shift | KeyCode . Enter
253
- : KeyMod . Alt | KeyMod . Shift | KeyCode . Backspace ,
254
- }
243
+ ? KeyMod . CtrlCmd | KeyCode . KeyY
244
+ : KeyMod . CtrlCmd | KeyCode . KeyN
255
245
} ,
256
246
menu : {
257
247
id : MenuId . ChatEditingEditorHunk ,
0 commit comments