From 7b9de45ff25b4ba50e9e45bed27938b08d2f27e0 Mon Sep 17 00:00:00 2001 From: "Ryan P. C. McQuen" Date: Tue, 22 Oct 2019 15:27:56 -0700 Subject: [PATCH] Add Mac OS mapping for Prettify. --- .../src/components/Playground/ConfigEditor.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/graphql-playground-react/src/components/Playground/ConfigEditor.tsx b/packages/graphql-playground-react/src/components/Playground/ConfigEditor.tsx index 45325ae38..d7d4e1bca 100644 --- a/packages/graphql-playground-react/src/components/Playground/ConfigEditor.tsx +++ b/packages/graphql-playground-react/src/components/Playground/ConfigEditor.tsx @@ -86,6 +86,11 @@ export class ConfigEditor extends React.Component { this.props.onPrettifyQuery() } }, + 'Shift-Cmd-P': () => { + if (this.props.onPrettifyQuery) { + this.props.onPrettifyQuery() + } + }, // Persistent search box in Query Editor 'Cmd-F': 'findPersistent',