Skip to content

Commit

Permalink
add a command to focus the Variables view
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcphers committed Jan 21, 2025
1 parent a268bc8 commit 392cde7
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import * as nls from '../../../../nls.js';
import { Disposable } from '../../../../base/common/lifecycle.js';
import { KeyMod, KeyCode } from '../../../../base/common/keyCodes.js';
import { KeyMod, KeyCode, KeyChord } from '../../../../base/common/keyCodes.js';
import { Registry } from '../../../../platform/registry/common/platform.js';
import { registerAction2 } from '../../../../platform/actions/common/actions.js';
import { PositronVariablesFocused } from '../../../common/contextkeys.js';
Expand Down Expand Up @@ -44,6 +44,12 @@ Registry.as<IViewsRegistry>(ViewContainerExtensions.ViewsRegistry).registerViews
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyH,
},
order: 1,
},
focusCommand: {
id: 'positronVariables.focus',
keybindings: {
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyCode.KeyV),
}
}
}
],
Expand Down

0 comments on commit 392cde7

Please sign in to comment.