Skip to content

Commit d469aa6

Browse files
committed
feature: deepword: keybindings
1 parent 2d4a540 commit d469aa6

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

client/api/_add-commands.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const addId = (a) => {
44
};
55

66
export default function _addCommands() {
7+
debugger;
78
const {_monaco, _eddy} = this;
89
const {KeyCode, KeyMod} = _monaco;
910

@@ -15,9 +16,9 @@ export default function _addCommands() {
1516
const run = (fn) => () => this.isKey() && fn();
1617

1718
const {
18-
KEY_E,
19-
KEY_G,
20-
KEY_S,
19+
KeyE,
20+
KeyG,
21+
KeyS,
2122
} = KeyCode;
2223

2324
const {
@@ -28,17 +29,17 @@ export default function _addCommands() {
2829
const actions = [{
2930
id: 'evaluate',
3031
label: 'Evaluate',
31-
keybindings: [CtrlCmd | KEY_E, WinCtrl | KEY_E],
32+
keybindings: [CtrlCmd | KeyE, WinCtrl | KeyE],
3233
run: run(evaluate),
3334
}, {
3435
id: 'goToLine',
3536
label: 'Go To Line',
36-
keybindings: [CtrlCmd | KEY_G, WinCtrl | KEY_G],
37+
keybindings: [CtrlCmd | KeyG, WinCtrl | KeyG],
3738
run: goToLine,
3839
}, {
3940
id: 'save',
4041
label: 'Save',
41-
keybindings: [CtrlCmd | KEY_S, WinCtrl | KEY_S],
42+
keybindings: [CtrlCmd | KeyS, WinCtrl | KeyS],
4243
run: run(save),
4344
}];
4445

0 commit comments

Comments
 (0)