diff --git a/front-end/app/studio/pages/apis/{apiId}/editor/commands/delete.command.ts b/front-end/app/studio/pages/apis/{apiId}/editor/commands/delete.command.ts index 8dc05032b..da705dbe0 100644 --- a/front-end/app/studio/pages/apis/{apiId}/editor/commands/delete.command.ts +++ b/front-end/app/studio/pages/apis/{apiId}/editor/commands/delete.command.ts @@ -90,7 +90,7 @@ export class DeletePathCommand extends AbstractCommand implements ICommand { * @param document */ public execute(document: OasDocument): void { - console.info("[DeletePathCommand] Executing."); + console.info("[DeletePathCommand] Executing for path: %s", this._path); this._oldPath = null; let doc: Oas20Document = document; let paths: Oas20Paths = doc.paths; diff --git a/front-end/app/studio/pages/apis/{apiId}/editor/components/context-help.component.html b/front-end/app/studio/pages/apis/{apiId}/editor/components/context-help.component.html index 755440d45..1a27d0ec9 100644 --- a/front-end/app/studio/pages/apis/{apiId}/editor/components/context-help.component.html +++ b/front-end/app/studio/pages/apis/{apiId}/editor/components/context-help.component.html @@ -1,4 +1,4 @@ - +
diff --git a/front-end/app/studio/pages/apis/{apiId}/editor/components/context-help.component.ts b/front-end/app/studio/pages/apis/{apiId}/editor/components/context-help.component.ts index 35c626a5c..13acba2af 100644 --- a/front-end/app/studio/pages/apis/{apiId}/editor/components/context-help.component.ts +++ b/front-end/app/studio/pages/apis/{apiId}/editor/components/context-help.component.ts @@ -54,4 +54,14 @@ export class ContextHelpComponent { return this._open; } + /** + * Called whenever the user presses a key. + * @param event + */ + public onGlobalKeyDown(event: KeyboardEvent): void { + if (event.key === "Escape" && !event.metaKey && !event.altKey && !event.ctrlKey) { + this.close(); + } + } + } diff --git a/front-end/app/studio/pages/apis/{apiId}/editor/components/definition-form.component.html b/front-end/app/studio/pages/apis/{apiId}/editor/components/definition-form.component.html index e03ae1d70..37b1b300d 100644 --- a/front-end/app/studio/pages/apis/{apiId}/editor/components/definition-form.component.html +++ b/front-end/app/studio/pages/apis/{apiId}/editor/components/definition-form.component.html @@ -10,7 +10,7 @@