feat: 测试Ctrl+S

This commit is contained in:
502647092 2017-10-20 14:59:06 +08:00
parent 2dc4955927
commit 20f5248e52

View File

@ -46,6 +46,9 @@
extraKeys: {
"Ctrl-Q": function (cm) {
cm.foldCode(cm.getCursor());
},
"Ctrl-s": function (cm) {
console.log('执行保存!');
}
},
foldGutter: true,
@ -55,7 +58,5 @@
</script>
<body>
<textarea id="code" style="height: 100%">
</textarea>
<textarea id="code" style="height: 100%"></textarea>
</body>