feat: 测试Ctrl+S
This commit is contained in:
		@@ -46,6 +46,9 @@
 | 
				
			|||||||
      extraKeys: {
 | 
					      extraKeys: {
 | 
				
			||||||
        "Ctrl-Q": function (cm) {
 | 
					        "Ctrl-Q": function (cm) {
 | 
				
			||||||
          cm.foldCode(cm.getCursor());
 | 
					          cm.foldCode(cm.getCursor());
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        "Ctrl-s": function (cm) {
 | 
				
			||||||
 | 
					          console.log('执行保存!');
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      foldGutter: true,
 | 
					      foldGutter: true,
 | 
				
			||||||
@@ -55,7 +58,5 @@
 | 
				
			|||||||
</script>
 | 
					</script>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<body>
 | 
					<body>
 | 
				
			||||||
  <textarea id="code" style="height: 100%">
 | 
					  <textarea id="code" style="height: 100%"></textarea>
 | 
				
			||||||
 | 
					 | 
				
			||||||
  </textarea>
 | 
					 | 
				
			||||||
</body>
 | 
					</body>
 | 
				
			||||||
		Reference in New Issue
	
	Block a user