Skip to content

Commit

Permalink
Query editor: fix shortcuts (#4598)
Browse files Browse the repository at this point in the history
  • Loading branch information
kravets-levko committed Jan 29, 2020
1 parent 713fd2d commit 2de3895
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions client/app/components/queries/QueryEditor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ const QueryEditor = React.forwardRef(function(

const initEditor = useCallback(editor => {
// Release Cmd/Ctrl+L to the browser
editor.commands.bindKey("Cmd+L", null);
editor.commands.bindKey("Ctrl+P", null);
editor.commands.bindKey("Ctrl+L", null);
editor.commands.bindKey({ win: "Ctrl+L", mac: "Cmd+L" }, null);

// Ignore Ctrl+P to open new parameter dialog
// Release Cmd/Ctrl+Shift+F for format query action
editor.commands.bindKey({ win: "Ctrl+Shift+F", mac: "Cmd+Shift+F" }, null);

// Release Ctrl+P for open new parameter dialog
editor.commands.bindKey({ win: "Ctrl+P", mac: null }, null);
// Lineup only mac
editor.commands.bindKey({ win: null, mac: "Ctrl+P" }, "golineup");
editor.commands.bindKey({ win: "Ctrl+Shift+F", mac: "Cmd+Shift+F" }, () => console.log("formatQuery"));

// Reset Completer in case dot is pressed
editor.commands.on("afterExec", e => {
Expand Down

0 comments on commit 2de3895

Please sign in to comment.