Skip to content

Commit

Permalink
fix(graphiql): prettify keybinding bug for Firefox. Fixes #905
Browse files Browse the repository at this point in the history
  • Loading branch information
nasehim7 authored and acao committed Sep 3, 2019
1 parent 0945258 commit fdf98ba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/graphiql/src/components/QueryEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,14 @@ export class QueryEditor extends React.Component {
}
},

/* Shift-Ctrl-P is hard coded in Firefox for private browsing so adding an alternative to Pretiffy */

'Shift-Ctrl-F': () => {
if (this.props.onPrettifyQuery) {
this.props.onPrettifyQuery();
}
},

'Shift-Ctrl-M': () => {
if (this.props.onMergeQuery) {
this.props.onMergeQuery();
Expand Down

0 comments on commit fdf98ba

Please sign in to comment.