File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
src/vs/workbench/contrib/testing/browser Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ import { ITestingPeekOpener } from 'vs/workbench/contrib/testing/common/testingP
71
71
import { cmpPriority , isFailedState , isStateWithResult } from 'vs/workbench/contrib/testing/common/testingStates' ;
72
72
import { IActivityService , NumberBadge } from 'vs/workbench/services/activity/common/activity' ;
73
73
import { IEditorService } from 'vs/workbench/services/editor/common/editorService' ;
74
+ import { registerNavigatableContainer } from 'vs/workbench/browser/actions/widgetNavigationCommands' ;
74
75
75
76
const enum LastFocusState {
76
77
Input ,
@@ -248,6 +249,23 @@ export class TestingExplorerView extends ViewPane {
248
249
return { include : [ ...include ] , exclude } ;
249
250
}
250
251
252
+ override render ( ) : void {
253
+ super . render ( ) ;
254
+ this . _register ( registerNavigatableContainer ( {
255
+ focusNotifiers : [ this ] ,
256
+ focusNextWidget : ( ) => {
257
+ if ( ! this . viewModel . tree . isDOMFocused ( ) ) {
258
+ this . viewModel . tree . domFocus ( ) ;
259
+ }
260
+ } ,
261
+ focusPreviousWidget : ( ) => {
262
+ if ( this . viewModel . tree . isDOMFocused ( ) ) {
263
+ this . filter . value ?. focus ( ) ;
264
+ }
265
+ }
266
+ } ) ) ;
267
+ }
268
+
251
269
/**
252
270
* @override
253
271
*/
You can’t perform that action at this time.
0 commit comments