summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeah (ctucx) <leah@ctu.cx>2021-03-06 00:33:46 +0100
committerLeah (ctucx) <leah@ctu.cx>2021-03-06 00:33:46 +0100
commitc96ceb864636c6c7dc388dfcc0f3f3e66f27ce44 (patch)
tree744ace0e649683ade5d369eca59a31b1c38830b3
parentfff8c358ca194b9b87881054bb596d9b4a3727bb (diff)
downloadwebmusic-nginx-c96ceb864636c6c7dc388dfcc0f3f3e66f27ce44.tar.gz
webmusic-nginx-c96ceb864636c6c7dc388dfcc0f3f3e66f27ce44.tar.bz2
webmusic-nginx-c96ceb864636c6c7dc388dfcc0f3f3e66f27ce44.zip
new key-combo: ESC for goto parent folder
-rw-r--r--webmusic.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/webmusic.js b/webmusic.js
index 03e57a3..014496a 100644
--- a/webmusic.js
+++ b/webmusic.js
@@ -50,6 +50,9 @@ window.onkeyup = function (event) {
else if (event.key === "ArrowRight") {
sound.seek(sound.seek()+10);
}
+ else if (event.key === "Escape") {
+ window.location = '../';
+ }
};