fix: remove command from hotkeys
This commit is contained in:
@ -116,7 +116,7 @@ class Editor extends Component {
|
|||||||
label: 'Run tests',
|
label: 'Run tests',
|
||||||
keybindings: [
|
keybindings: [
|
||||||
/* eslint-disable no-bitwise */
|
/* 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
|
run: this.props.executeChallenge
|
||||||
});
|
});
|
||||||
|
@ -4,9 +4,9 @@ import { HotKeys, GlobalHotKeys } from 'react-hotkeys';
|
|||||||
import { navigate } from 'gatsby';
|
import { navigate } from 'gatsby';
|
||||||
|
|
||||||
const keyMap = {
|
const keyMap = {
|
||||||
EXECUTE_CHALLENGE: ['ctrl+enter', 'cmd+enter'],
|
EXECUTE_CHALLENGE: ['ctrl+enter'],
|
||||||
NAVIGATE_PREV: ['ctrl+left', 'cmd+left'],
|
NAVIGATE_PREV: ['ctrl+left'],
|
||||||
NAVIGATE_NEXT: ['ctrl+right', 'cmd+right']
|
NAVIGATE_NEXT: ['ctrl+right']
|
||||||
};
|
};
|
||||||
|
|
||||||
const propTypes = {
|
const propTypes = {
|
||||||
|
Reference in New Issue
Block a user