Skip to content

Commit

Permalink
Add a command to focus the Variables view (#6060)
Browse files Browse the repository at this point in the history
Adds a custom focus command to focus the Variables view; addresses
#6050.

### Release Notes

#### New Features

- Add keybinding <kbd>Cmd</kbd> <kbd>K</kbd>, <kbd>V</kbd> for keyboard
access to open/focus Variables view.
#6050

#### Bug Fixes

- N/A


### QA Notes

N/A
  • Loading branch information
jmcphers authored Jan 21, 2025
1 parent 56424f5 commit fdb17f2
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 fdb17f2

Please sign in to comment.