Block Shift, Ctrl and Alt - they don't work in chrome

This commit is contained in:
2025-12-13 08:53:31 +01:00
parent 4512b891f8
commit 6ba33c5da1

View File

@@ -390,6 +390,10 @@ class YTMND:
fn.write(" }\n")
fn.write(" \n")
fn.write(" document.addEventListener('keydown', function(e) {\n")
fn.write(" var modifierKeys = [16, 17, 18];\n")
fn.write(" if (modifierKeys.indexOf(e.keyCode) !== -1) {\n")
fn.write(" return;\n")
fn.write(" }\n")
fn.write(" if (overlay && overlay.style.display !== 'none') {\n")
fn.write(" startAudio();\n")
fn.write(" }\n")