@@ -15,7 +15,6 @@ import 'vs/css!./media/notebookCellOutput';
15
15
import { PixelRatio } from 'vs/base/browser/browser' ;
16
16
import * as DOM from 'vs/base/browser/dom' ;
17
17
import { IMouseWheelEvent , StandardMouseEvent } from 'vs/base/browser/mouseEvent' ;
18
- import * as aria from 'vs/base/browser/ui/aria/aria' ;
19
18
import { IListContextMenuEvent } from 'vs/base/browser/ui/list/list' ;
20
19
import { DeferredPromise , runWhenIdle , SequencerByKey } from 'vs/base/common/async' ;
21
20
import { CancellationToken } from 'vs/base/common/cancellation' ;
@@ -91,7 +90,6 @@ import { INotebookLoggingService } from 'vs/workbench/contrib/notebook/common/no
91
90
import { Schemas } from 'vs/base/common/network' ;
92
91
import { DropIntoEditorController } from 'vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController' ;
93
92
import { CopyPasteController } from 'vs/editor/contrib/dropOrPasteInto/browser/copyPasteController' ;
94
- import { AccessibilityVerbositySettingId } from 'vs/workbench/contrib/accessibility/browser/accessibilityContribution' ;
95
93
96
94
const $ = DOM . $ ;
97
95
@@ -2239,28 +2237,6 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditorD
2239
2237
return undefined ;
2240
2238
}
2241
2239
2242
- private _cellFocusAria ( cell : ICellViewModel , focusItem : 'editor' | 'container' | 'output' ) {
2243
- const index = this . _notebookViewModel ?. getCellIndex ( cell ) ;
2244
- const verboseLabel = this . configurationService . getValue ( AccessibilityVerbositySettingId . Notebook ) ;
2245
- if ( index !== undefined && index >= 0 ) {
2246
- let position = '' ;
2247
- switch ( focusItem ) {
2248
- case 'editor' :
2249
- position = `the inner ${ cell . cellKind === CellKind . Markup ? 'markdown' : 'code' } editor is focused` + ( verboseLabel ? `, press escape to focus the cell container` : '' ) ;
2250
- break ;
2251
- case 'output' :
2252
- position = `the cell output is focused` + ( verboseLabel ? `, press escape to focus the cell container` : '' ) ;
2253
- break ;
2254
- case 'container' :
2255
- position = `the ${ cell . cellKind === CellKind . Markup ? 'markdown preview' : 'cell container' } is focused` + ( verboseLabel ? `, press enter to focus the inner ${ cell . cellKind === CellKind . Markup ? 'markdown' : 'code' } editor` : '' ) ;
2256
- break ;
2257
- default :
2258
- break ;
2259
- }
2260
- aria . alert ( `Cell ${ this . _notebookViewModel ?. getCellIndex ( cell ) } , ${ position } ` ) ;
2261
- }
2262
- }
2263
-
2264
2240
private _toggleNotebookCellSelection ( selectedCell : ICellViewModel , selectFromPrevious : boolean ) : void {
2265
2241
const currentSelections = this . _list . getSelectedElements ( ) ;
2266
2242
const isSelected = currentSelections . includes ( selectedCell ) ;
@@ -2300,7 +2276,6 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditorD
2300
2276
2301
2277
if ( focusItem === 'editor' ) {
2302
2278
this . focusElement ( cell ) ;
2303
- this . _cellFocusAria ( cell , focusItem ) ;
2304
2279
this . _list . focusView ( ) ;
2305
2280
2306
2281
cell . updateEditState ( CellEditState . Editing , 'focusNotebookCell' ) ;
@@ -2330,7 +2305,6 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditorD
2330
2305
}
2331
2306
} else if ( focusItem === 'output' ) {
2332
2307
this . focusElement ( cell ) ;
2333
- this . _cellFocusAria ( cell , focusItem ) ;
2334
2308
2335
2309
if ( ! this . hasEditorFocus ( ) ) {
2336
2310
this . _list . focusView ( ) ;
@@ -2359,7 +2333,6 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditorD
2359
2333
cell . focusMode = CellFocusMode . Container ;
2360
2334
2361
2335
this . focusElement ( cell ) ;
2362
- this . _cellFocusAria ( cell , focusItem ) ;
2363
2336
if ( ! options ?. skipReveal ) {
2364
2337
if ( typeof options ?. focusEditorLine === 'number' ) {
2365
2338
this . _cursorNavMode . set ( true ) ;
0 commit comments