Add keyboard shortcut for commenting code

This commit is contained in:
Timo 2016-10-24 10:56:48 +02:00 committed by Stuart Taylor
parent 76af34466e
commit e8713dcae0

View File

@ -77,6 +77,12 @@ export class Editor extends PureComponent {
'Cmd-Enter': function() {
executeChallenge();
return false;
},
'Ctrl-/': function(cm) {
cm.toggleComment();
},
'Cmd-/': function(cm) {
cm.toggleComment();
}
}
})