ctucx.git: webmusic-nginx

nginx xslt-based index files optimized for music, inspired by https://git.zotan.services/zotan/webmusic

commit ae445a4330e1436edcce6c35307a3b2a19970ae0
parent ec45c22794519368755856cd7da249842bfe4633
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sat, 13 Mar 2021 02:07:57 +0100

webmusic.js: prevent default action for keydown events
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/webmusic.js b/webmusic.js
@@ -11,6 +11,9 @@ let   onlyDirs     = true;
 
 const handleKeyEvent = (event) => {
 	if (event.ctrlKey === true || event.altKey === true) return;
+	event.preventDefault();
+	event.stopPropagation();
+
 	switch (event.key) {
 		case ' ':
 		case 'p':