get insert kb to work in input editor

This commit is contained in:
meganrogge 2024-04-01 11:12:14 -07:00
parent ade21d7359
commit 79b01c410c
No known key found for this signature in database
GPG key ID: AA74638D4878183D

View file

@ -224,11 +224,16 @@ registerActiveXtermAction({
TerminalChatContextKeys.responseContainsCodeBlock,
TerminalChatContextKeys.responseContainsMultipleCodeBlocks.negate()
),
keybinding: {
keybinding: [{
when: TerminalChatContextKeys.requestActive.negate(),
weight: KeybindingWeight.WorkbenchContrib,
primary: KeyMod.Alt | KeyCode.Enter,
},
{
when: ContextKeyExpr.and(TerminalChatContextKeys.focused, CTX_INLINE_CHAT_FOCUSED),
weight: KeybindingWeight.WorkbenchContrib,
primary: KeyMod.CtrlCmd | KeyCode.Enter | KeyMod.Alt
}],
menu: {
id: MENU_TERMINAL_CHAT_WIDGET_STATUS,
group: '0_main',
@ -255,11 +260,16 @@ registerActiveXtermAction({
TerminalChatContextKeys.agentRegistered,
TerminalChatContextKeys.responseContainsMultipleCodeBlocks
),
keybinding: {
keybinding: [{
when: TerminalChatContextKeys.requestActive.negate(),
weight: KeybindingWeight.WorkbenchContrib,
primary: KeyMod.Alt | KeyCode.Enter,
},
secondary: [KeyMod.CtrlCmd | KeyCode.Enter | KeyMod.Alt]
}, {
when: ContextKeyExpr.and(TerminalChatContextKeys.focused, CTX_INLINE_CHAT_FOCUSED),
weight: KeybindingWeight.WorkbenchContrib,
primary: KeyMod.CtrlCmd | KeyCode.Enter | KeyMod.Alt
}],
menu: {
id: MENU_TERMINAL_CHAT_WIDGET_STATUS,
group: '0_main',