From a7c42446be65043bfcd154e3a47d63e896ffa7c1 Mon Sep 17 00:00:00 2001 From: moT01 Date: Thu, 19 Sep 2019 16:33:14 -0500 Subject: [PATCH] fix: remove command from hotkeys --- client/src/templates/Challenges/classic/Editor.js | 2 +- client/src/templates/Challenges/components/Hotkeys.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/templates/Challenges/classic/Editor.js b/client/src/templates/Challenges/classic/Editor.js index e496fc83ae..2fc9965726 100644 --- a/client/src/templates/Challenges/classic/Editor.js +++ b/client/src/templates/Challenges/classic/Editor.js @@ -116,7 +116,7 @@ class Editor extends Component { label: 'Run tests', keybindings: [ /* eslint-disable no-bitwise */ - monaco.KeyMod.chord(monaco.KeyMod.CtrlCmd | monaco.KeyCode.Enter) + monaco.KeyMod.chord(monaco.KeyMod.WinCtrl | monaco.KeyCode.Enter) ], run: this.props.executeChallenge }); diff --git a/client/src/templates/Challenges/components/Hotkeys.js b/client/src/templates/Challenges/components/Hotkeys.js index ca49e156c6..e38902f14e 100644 --- a/client/src/templates/Challenges/components/Hotkeys.js +++ b/client/src/templates/Challenges/components/Hotkeys.js @@ -4,9 +4,9 @@ import { HotKeys, GlobalHotKeys } from 'react-hotkeys'; import { navigate } from 'gatsby'; const keyMap = { - EXECUTE_CHALLENGE: ['ctrl+enter', 'cmd+enter'], - NAVIGATE_PREV: ['ctrl+left', 'cmd+left'], - NAVIGATE_NEXT: ['ctrl+right', 'cmd+right'] + EXECUTE_CHALLENGE: ['ctrl+enter'], + NAVIGATE_PREV: ['ctrl+left'], + NAVIGATE_NEXT: ['ctrl+right'] }; const propTypes = {