提交 0ea854b1 编写于 作者: J Johannes Rieken

F12 navigates peek view results, #83752

上级 ff649889
...@@ -276,6 +276,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({ ...@@ -276,6 +276,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
id: 'goToNextReference', id: 'goToNextReference',
weight: KeybindingWeight.WorkbenchContrib + 50, weight: KeybindingWeight.WorkbenchContrib + 50,
primary: KeyCode.F4, primary: KeyCode.F4,
secondary: [KeyCode.F12],
when: ctxReferenceSearchVisible, when: ctxReferenceSearchVisible,
handler(accessor) { handler(accessor) {
withController(accessor, controller => { withController(accessor, controller => {
...@@ -288,6 +289,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({ ...@@ -288,6 +289,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
id: 'goToNextReferenceFromEmbeddedEditor', id: 'goToNextReferenceFromEmbeddedEditor',
weight: KeybindingWeight.EditorContrib + 50, weight: KeybindingWeight.EditorContrib + 50,
primary: KeyCode.F4, primary: KeyCode.F4,
secondary: [KeyCode.F12],
when: PeekContext.inPeekEditor, when: PeekContext.inPeekEditor,
handler(accessor) { handler(accessor) {
withController(accessor, controller => { withController(accessor, controller => {
...@@ -300,6 +302,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({ ...@@ -300,6 +302,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
id: 'goToPreviousReference', id: 'goToPreviousReference',
weight: KeybindingWeight.WorkbenchContrib + 50, weight: KeybindingWeight.WorkbenchContrib + 50,
primary: KeyMod.Shift | KeyCode.F4, primary: KeyMod.Shift | KeyCode.F4,
secondary: [KeyMod.Shift | KeyCode.F12],
when: ctxReferenceSearchVisible, when: ctxReferenceSearchVisible,
handler(accessor) { handler(accessor) {
withController(accessor, controller => { withController(accessor, controller => {
...@@ -312,6 +315,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({ ...@@ -312,6 +315,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
id: 'goToPreviousReferenceFromEmbeddedEditor', id: 'goToPreviousReferenceFromEmbeddedEditor',
weight: KeybindingWeight.EditorContrib + 50, weight: KeybindingWeight.EditorContrib + 50,
primary: KeyMod.Shift | KeyCode.F4, primary: KeyMod.Shift | KeyCode.F4,
secondary: [KeyMod.Shift | KeyCode.F12],
when: PeekContext.inPeekEditor, when: PeekContext.inPeekEditor,
handler(accessor) { handler(accessor) {
withController(accessor, controller => { withController(accessor, controller => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册