From 3256e0bbb5a077e16d2548b837b3d1e62346e6e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Kesim?= Date: Mon, 27 Nov 2017 09:40:31 -0800 Subject: [PATCH] added ctrl-s -> share() --- index.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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=""; }