Skip to content

Commit 9ee85fc

Browse files
committed
Stop overriding ctrl-x
1 parent 40294c0 commit 9ee85fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

html/js/ejs.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ window.addEventListener("load", () => {
6969
"Ctrl-Enter"(cm) { runCode(cm.state.context) },
7070
"Cmd-Enter"(cm) { runCode(cm.state.context) },
7171
"Ctrl-`"(cm) { closeCode(cm.state.context) },
72-
"Ctrl-X"(cm) { resetSandbox(cm.state.context.sandbox) },
73-
"Cmd-X"(cm) { resetSandbox(cm.state.context.sandbox) }
72+
"Ctrl-Esc"(cm) { resetSandbox(cm.state.context.sandbox) },
73+
"Cmd-Esc"(cm) { resetSandbox(cm.state.context.sandbox) }
7474
}
7575

7676
let nextID = 0
@@ -133,7 +133,7 @@ window.addEventListener("load", () => {
133133
let menu = elt("div", {"class": "sandbox-open-menu"})
134134
let items = [["Run code (ctrl/cmd-enter)", () => runCode(data)],
135135
["Revert to original code", () => revertCode(data)],
136-
["Reset sandbox (ctrl/cmd-x)", () => resetSandbox(data.sandbox)]]
136+
["Reset sandbox (ctrl/cmd-esc)", () => resetSandbox(data.sandbox)]]
137137
if (!data.isHTML || !data.sandbox)
138138
items.push(["Deactivate editor (ctrl-`)", () => { closeCode(data) }])
139139
items.forEach(choice => menu.appendChild(elt("div", choice[0])))

0 commit comments

Comments
 (0)