@@ -76,6 +76,7 @@ document.adoptedStyleSheets = document.adoptedStyleSheets.concat(ContextMenuStyl
76
76
/** @typedef {import('@advanced-rest-client/arc-events').ARCMenuPopupEvent } ARCMenuPopupEvent */
77
77
/** @typedef {import('@advanced-rest-client/arc-events').ARCNavigationEvent } ARCNavigationEvent */
78
78
/** @typedef {import('@advanced-rest-client/arc-events').ARCExternalNavigationEvent } ARCExternalNavigationEvent */
79
+ /** @typedef {import('@advanced-rest-client/arc-events').ARCHelpTopicEvent } ARCHelpTopicEvent */
79
80
/** @typedef {import('@advanced-rest-client/arc-events').ConfigStateUpdateEvent } ConfigStateUpdateEvent */
80
81
/** @typedef {import('@advanced-rest-client/arc-events').ArcImportInspectEvent } ArcImportInspectEvent */
81
82
/** @typedef {import('@advanced-rest-client/arc-events').WorkspaceAppendRequestEvent } WorkspaceAppendRequestEvent */
@@ -139,6 +140,7 @@ const sheetClosedHandler = Symbol('sheetClosedHandler');
139
140
const metaRequestHandler = Symbol ( 'metaRequestHandler' ) ;
140
141
const requestMetaCloseHandler = Symbol ( 'requestMetaCloseHandler' ) ;
141
142
const externalNavigationHandler = Symbol ( 'externalNavigationHandler' ) ;
143
+ const helpNavigationHandler = Symbol ( 'helpNavigationHandler' ) ;
142
144
const contextCommandHandler = Symbol ( 'contextCommandHandler' ) ;
143
145
const hostRulesTemplate = Symbol ( 'hostRulesTemplate' ) ;
144
146
const processApplicationState = Symbol ( 'processApplicationState' ) ;
@@ -595,6 +597,7 @@ export class AdvancedRestClientApplication extends ApplicationPage {
595
597
window . addEventListener ( ArcNavigationEventTypes . navigateRestApi , this [ navigateRestApiHandler ] . bind ( this ) ) ;
596
598
window . addEventListener ( ArcNavigationEventTypes . popupMenu , this [ popupMenuHandler ] . bind ( this ) ) ;
597
599
window . addEventListener ( ArcNavigationEventTypes . navigateExternal , this [ externalNavigationHandler ] . bind ( this ) ) ;
600
+ window . addEventListener ( ArcNavigationEventTypes . helpTopic , this [ helpNavigationHandler ] . bind ( this ) ) ;
598
601
window . addEventListener ( WorkspaceEventTypes . appendRequest , this [ workspaceAppendRequestHandler ] . bind ( this ) ) ;
599
602
window . addEventListener ( WorkspaceEventTypes . appendExport , this [ workspaceAppendExportHandler ] . bind ( this ) ) ;
600
603
window . addEventListener ( ConfigEventTypes . State . update , this [ configStateChangeHandler ] . bind ( this ) ) ;
@@ -837,6 +840,14 @@ export class AdvancedRestClientApplication extends ApplicationPage {
837
840
ipc . send ( 'open-web-url' , url , purpose ) ;
838
841
}
839
842
843
+ /**
844
+ * @param {ARCHelpTopicEvent } e
845
+ */
846
+ [ helpNavigationHandler ] ( e ) {
847
+ const { topic } = e ;
848
+ ipc . send ( 'help-topic' , topic ) ;
849
+ }
850
+
840
851
/**
841
852
* A handler for the main toolbar arrow back click.
842
853
* Always navigates to the workspace.
0 commit comments