File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ class NotificationAccessibleViewContribution extends Disposable {
210
210
}
211
211
focusList ( ) ;
212
212
list . focusNext ( ) ;
213
- if ( notificationIndex ) {
213
+ if ( ! ! notificationIndex ) {
214
214
const notificationNumber = notificationIndex + 1 ;
215
215
if ( ! ! notificationNumber && ! ! length && notificationNumber + 1 <= length ) {
216
216
alert ( `Focused ${ notificationNumber + 1 } of ${ length } ` ) ;
@@ -224,7 +224,7 @@ class NotificationAccessibleViewContribution extends Disposable {
224
224
}
225
225
focusList ( ) ;
226
226
list . focusPrevious ( ) ;
227
- if ( notificationIndex ) {
227
+ if ( ! ! notificationIndex ) {
228
228
const notificationNumber = notificationIndex + 1 ;
229
229
if ( ! ! notificationNumber && ! ! length && notificationNumber - 1 > 0 ) {
230
230
alert ( `Focused ${ notificationNumber - 1 } of ${ length } ` ) ;
Original file line number Diff line number Diff line change @@ -193,18 +193,20 @@ class ChatAccessibleViewContribution extends Disposable {
193
193
} ,
194
194
next ( ) {
195
195
verifiedWidget . moveFocus ( focusedItem , 'next' ) ;
196
- if ( responseIndex ) {
197
- if ( ! ! responseIndex && ! ! length && responseIndex + 1 <= length ) {
198
- alert ( `Focused ${ responseIndex + 1 } of ${ length } ` ) ;
196
+ if ( ! ! responseIndex ) {
197
+ const notificationNumber = responseIndex + 1 ;
198
+ if ( ! ! notificationNumber && ! ! length && notificationNumber + 1 <= length ) {
199
+ alert ( `Focused ${ notificationNumber + 1 } of ${ length } ` ) ;
199
200
}
200
201
}
201
202
renderAccessibleView ( accessibleViewService , widgetService , codeEditorService ) ;
202
203
} ,
203
204
previous ( ) {
204
205
verifiedWidget . moveFocus ( focusedItem , 'previous' ) ;
205
- if ( responseIndex ) {
206
- if ( ! ! responseIndex && ! ! length && responseIndex - 1 > 0 ) {
207
- alert ( `Focused ${ responseIndex + 1 } of ${ length } ` ) ;
206
+ if ( ! ! responseIndex ) {
207
+ const notificationNumber = responseIndex + 1 ;
208
+ if ( ! ! notificationNumber && ! ! length && notificationNumber - 1 > 0 ) {
209
+ alert ( `Focused ${ notificationNumber - 1 } of ${ length } ` ) ;
208
210
}
209
211
}
210
212
renderAccessibleView ( accessibleViewService , widgetService , codeEditorService ) ;
You can’t perform that action at this time.
0 commit comments