We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79e0e56 commit 3b9ad59Copy full SHA for 3b9ad59
1 file changed
lib/components/CodeEditor.js
@@ -31,6 +31,14 @@ module.exports = React.createClass({
31
editor.setTheme('ace/theme/xcode')
32
editor.clearSelection()
33
editor.moveCursorTo(0, 0)
34
+ editor.commands.addCommand({
35
+ name: 'Emacs cursor up',
36
+ bindKey: {mac: 'Ctrl-P'},
37
+ exec: function (editor) {
38
+ editor.navigateUp(1)
39
+ },
40
+ readOnly: true
41
+ })
42
43
editor.setReadOnly(!!this.props.readOnly)
44
0 commit comments