diff --git a/src/lib/buttons/help-button/help-button.component.html b/src/lib/buttons/help-button/help-button.component.html index d0b79a1..bac8fc3 100644 --- a/src/lib/buttons/help-button/help-button.component.html +++ b/src/lib/buttons/help-button/help-button.component.html @@ -1,13 +1,13 @@ >, @Inject(MANUAL_BASE_URL) private readonly _manualBaseURL: string, diff --git a/src/lib/help-mode/help-mode/help-mode.component.ts b/src/lib/help-mode/help-mode/help-mode.component.ts index 1fcd619..89a2663 100644 --- a/src/lib/help-mode/help-mode/help-mode.component.ts +++ b/src/lib/help-mode/help-mode/help-mode.component.ts @@ -22,6 +22,11 @@ export class HelpModeComponent { @HostListener('document:keydown.h', ['$event']) onHKeydownHandler(event: KeyboardEvent): void { const node = (event.target as IqserEventTarget).localName; if (!this.helpModeService.isHelpModeActive && node !== 'input' && node !== 'textarea') { + if (this.helpModeService.helpButtonKey) { + const url = this.helpModeService.getDocsLink(this.helpModeService.helpButtonKey); + window.open(url, '_blank'); + return; + } const dialogMode = !!this._dialog.openDialogs.length; this.helpModeService.activateHelpMode(dialogMode); }