fix: remove command from hotkeys

This commit is contained in:
moT01
2019-09-19 16:33:14 -05:00
committed by mrugesh
parent 6f5b22fd21
commit a7c42446be
2 changed files with 4 additions and 4 deletions

View File

@ -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
});

View File

@ -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 = {