Add keyboard shortcut for commenting code

This commit is contained in:
Timo
2016-10-24 09:56:48 +01:00
committed by Stuart Taylor
parent 76af34466e
commit e8713dcae0
@@ -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();
}
}
})