@@ -196,15 +230,16 @@ class GotoDefinitionWithMouseEditorContribution implements editorCommon.IEditorC
}
}
privateonEditorKeyDown(e:IKeyboardEvent):void{
privateonEditorKeyDown(e:MyKeyboardEvent):void{
if(
this.lastMouseMoveEvent&&(
e.keyCode===GotoDefinitionWithMouseEditorContribution.TRIGGER_KEY_VALUE||// User just pressed Ctrl/Cmd (normal goto definition)
e.keyCode===GotoDefinitionWithMouseEditorContribution.TRIGGER_SIDEBYSIDE_KEY_VALUE&&e[GotoDefinitionWithMouseEditorContribution.TRIGGER_MODIFIER]// User pressed Ctrl/Cmd+Alt (goto definition to the side)
this.lastMouseMoveEvent
&&(
e.keyCodeIsTriggerKey// User just pressed Ctrl/Cmd (normal goto definition)
||(e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)// User pressed Ctrl/Cmd+Alt (goto definition to the side)