File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
src/vs/workbench/browser/parts/editor Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -573,6 +573,27 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
573
573
handler : accessor => focusAndSelectHandler ( accessor , false )
574
574
} ) ;
575
575
576
+ registerAction2 ( class FocusBreadcrumbs extends Action2 {
577
+ constructor ( ) {
578
+ super ( {
579
+ id : 'breadcrumbs.focus' ,
580
+ title : {
581
+ value : localize ( 'cmd.focus' , "Focus Breadcrumbs" ) ,
582
+ original : 'Focus Breadcrumbs'
583
+ } ,
584
+ precondition : BreadcrumbsControl . CK_BreadcrumbsVisible ,
585
+ keybinding : {
586
+ weight : KeybindingWeight . WorkbenchContrib ,
587
+ primary : KeyMod . CtrlCmd | KeyMod . Shift | KeyCode . Semicolon ,
588
+ when : BreadcrumbsControl . CK_BreadcrumbsPossible ,
589
+ }
590
+ } ) ;
591
+ }
592
+ run ( accessor : ServicesAccessor , ...args : any [ ] ) : void {
593
+ focusAndSelectHandler ( accessor , false ) ;
594
+ }
595
+ } ) ;
596
+
576
597
// this commands is only enabled when breadcrumbs are
577
598
// disabled which it then enables and focuses
578
599
KeybindingsRegistry . registerCommandAndKeybindingRule ( {
You can’t perform that action at this time.
0 commit comments