|
4 | 4 | *--------------------------------------------------------------------------------------------*/
|
5 | 5 |
|
6 | 6 | import { Codicon } from 'vs/base/common/codicons';
|
7 |
| -import { KeyCode, KeyMod } from 'vs/base/common/keyCodes'; |
| 7 | +import { KeyChord, KeyCode, KeyMod } from 'vs/base/common/keyCodes'; |
8 | 8 | import { EditorContextKeys } from 'vs/editor/common/editorContextKeys';
|
9 | 9 | import { localize, localize2 } from 'vs/nls';
|
10 | 10 | import { CONTEXT_ACCESSIBILITY_MODE_ENABLED } from 'vs/platform/accessibility/common/accessibility';
|
@@ -386,6 +386,18 @@ registerAction2(class extends NotebookAction {
|
386 | 386 | ]
|
387 | 387 | },
|
388 | 388 | f1: false,
|
| 389 | + keybinding: { |
| 390 | + when: ContextKeyExpr.and( |
| 391 | + NOTEBOOK_EDITOR_FOCUSED, |
| 392 | + NOTEBOOK_EDITOR_EDITABLE.isEqualTo(true), |
| 393 | + ContextKeyExpr.not(InputFocusedContextKey), |
| 394 | + CTX_INLINE_CHAT_HAS_PROVIDER, |
| 395 | + ContextKeyExpr.equals(`config.${NotebookSetting.cellChat}`, true) |
| 396 | + ), |
| 397 | + weight: KeybindingWeight.WorkbenchContrib, |
| 398 | + primary: KeyMod.CtrlCmd | KeyCode.KeyI, |
| 399 | + secondary: [KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyCode.KeyI)], |
| 400 | + }, |
389 | 401 | menu: [
|
390 | 402 | {
|
391 | 403 | id: MenuId.NotebookCellBetween,
|
|
0 commit comments