Skip to content

Commit 7e29032

Browse files
save file
1 parent ee0a015 commit 7e29032

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

utils/misc/nodejs-terminal/html/snippet-nodejs/v1.0/snippet-nodejs-v1.0.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@
112112
await mod.auto();
113113

114114
editor = mod['web-editor'];
115+
editor.initmod({kd});
116+
115117
term = mod['web-terminal'];
116118

117119

@@ -156,6 +158,15 @@
156158
//:
157159

158160

161+
function kd(e){
162+
163+
if(e.ctrlKey && e.key=='Enter'){
164+
btn.run();
165+
}
166+
167+
}//kd
168+
169+
159170
btn.run = async function(){
160171

161172
var js = editor.get();

0 commit comments

Comments
 (0)