File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
src/vs/workbench/contrib/preferences/browser Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ import { CompletionItemKind } from 'vs/editor/common/languages';
56
56
import { settingsTextInputBorder } from 'vs/workbench/contrib/preferences/common/settingsEditorColorRegistry' ;
57
57
import { IConfigurationService } from 'vs/platform/configuration/common/configuration' ;
58
58
import { AccessibilityVerbositySettingId } from 'vs/workbench/contrib/accessibility/browser/accessibilityContribution' ;
59
+ import { registerNavigatableContainer } from 'vs/workbench/browser/actions/widgetNavigationCommands' ;
59
60
60
61
const $ = DOM . $ ;
61
62
@@ -134,6 +135,23 @@ export class KeybindingsEditor extends EditorPane implements IKeybindingsEditorP
134
135
this . overflowWidgetsDomNode = $ ( '.keybindings-overflow-widgets-container.monaco-editor' ) ;
135
136
}
136
137
138
+ override create ( parent : HTMLElement ) : void {
139
+ super . create ( parent ) ;
140
+ this . _register ( registerNavigatableContainer ( {
141
+ focusNotifiers : [ this ] ,
142
+ focusNextWidget : ( ) => {
143
+ if ( this . searchWidget . hasFocus ( ) ) {
144
+ this . focusKeybindings ( ) ;
145
+ }
146
+ } ,
147
+ focusPreviousWidget : ( ) => {
148
+ if ( ! this . searchWidget . hasFocus ( ) ) {
149
+ this . focusSearch ( ) ;
150
+ }
151
+ }
152
+ } ) ) ;
153
+ }
154
+
137
155
protected createEditor ( parent : HTMLElement ) : void {
138
156
const keybindingsEditorElement = DOM . append ( parent , $ ( 'div' , { class : 'keybindings-editor' } ) ) ;
139
157
You can’t perform that action at this time.
0 commit comments