@@ -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