diff --git a/index.html b/index.html index 74d2c1b..eb533db 100644 --- a/index.html +++ b/index.html @@ -92,8 +92,8 @@ svg { {{ .Cur.Example }}
- - + + @@ -121,6 +121,9 @@ window.onkeydown=function(e) { if (e.ctrlKey && e.key == "Enter") { e.preventDefault(); run(); + } else if (e.ctrlKey && e.key == "s") { + e.preventDefault(); + share(); } } @@ -131,6 +134,7 @@ filein.onchange=function() { editor.setValue(e.target.result); }; reader.readAsText(file); + filein.value=""; window.location.hash=""; }