@@ -129,8 +129,14 @@ registerTerminalAction({
129
129
keybinding : [
130
130
{
131
131
primary : KeyMod . CtrlCmd | KeyCode . DownArrow ,
132
- weight : KeybindingWeight . WorkbenchContrib + 2 ,
133
- when : TerminalContextKeys . accessibleBufferFocus
132
+ when : ContextKeyExpr . and ( TerminalContextKeys . accessibleBufferFocus , CONTEXT_ACCESSIBILITY_MODE_ENABLED . negate ( ) ) ,
133
+ weight : KeybindingWeight . WorkbenchContrib + 2
134
+ } ,
135
+ {
136
+ primary : KeyMod . CtrlCmd | KeyCode . DownArrow ,
137
+ mac : { primary : KeyMod . Alt | KeyCode . DownArrow } ,
138
+ when : ContextKeyExpr . and ( TerminalContextKeys . accessibleBufferFocus , CONTEXT_ACCESSIBILITY_MODE_ENABLED ) ,
139
+ weight : KeybindingWeight . WorkbenchContrib + 2
134
140
}
135
141
] ,
136
142
run : async ( c ) => {
@@ -151,8 +157,14 @@ registerTerminalAction({
151
157
keybinding : [
152
158
{
153
159
primary : KeyMod . CtrlCmd | KeyCode . UpArrow ,
154
- weight : KeybindingWeight . WorkbenchContrib + 2 ,
155
- when : TerminalContextKeys . accessibleBufferFocus
160
+ when : ContextKeyExpr . and ( TerminalContextKeys . accessibleBufferFocus , CONTEXT_ACCESSIBILITY_MODE_ENABLED . negate ( ) ) ,
161
+ weight : KeybindingWeight . WorkbenchContrib + 2
162
+ } ,
163
+ {
164
+ primary : KeyMod . CtrlCmd | KeyCode . UpArrow ,
165
+ mac : { primary : KeyMod . Alt | KeyCode . UpArrow } ,
166
+ when : ContextKeyExpr . and ( TerminalContextKeys . accessibleBufferFocus , CONTEXT_ACCESSIBILITY_MODE_ENABLED ) ,
167
+ weight : KeybindingWeight . WorkbenchContrib + 2
156
168
}
157
169
] ,
158
170
run : async ( c ) => {
0 commit comments