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
7171import { cmpPriority , isFailedState , isStateWithResult } from 'vs/workbench/contrib/testing/common/testingStates' ;
7272import { IActivityService , NumberBadge } from 'vs/workbench/services/activity/common/activity' ;
7373import { IEditorService } from 'vs/workbench/services/editor/common/editorService' ;
74+ import { registerNavigatableContainer } from 'vs/workbench/browser/actions/widgetNavigationCommands' ;
7475
7576const enum LastFocusState {
7677 Input ,
@@ -248,6 +249,23 @@ export class TestingExplorerView extends ViewPane {
248249 return { include : [ ...include ] , exclude } ;
249250 }
250251
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+
251269 /**
252270 * @override
253271 */
You can’t perform that action at this time.
0 commit comments