diff --git a/dist/web/source/wasm-config.js b/dist/web/source/wasm-config.js index 3b63e4ad0..5dda37ad0 100644 --- a/dist/web/source/wasm-config.js +++ b/dist/web/source/wasm-config.js @@ -263,6 +263,9 @@ function js_resizeCanvas() { canvas.height = Math.min(document.documentElement.clientHeight, window.innerHeight || 0); } -// Prevent default browser shortcuts from preventing ImHex ones to work -document.addEventListener('keydown', e => { e.preventDefault(); }) -document.addEventListener('keyup', e => { e.preventDefault(); }) \ No newline at end of file +// Prevent some default browser shortcuts from preventing ImHex ones to work +document.addEventListener('keydown', e => { + if (e.ctrlKey) { + if (e.which == 83) e.preventDefault(); + } +}) \ No newline at end of file