mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-27 23:37:05 -05:00
fix: Certain shortcuts not being captured by ImHex Web
This commit is contained in:
6
dist/web/source/wasm-config.js
vendored
6
dist/web/source/wasm-config.js
vendored
@@ -261,4 +261,8 @@ function js_resizeCanvas() {
|
||||
canvas.left = document.documentElement.clientLeft;
|
||||
canvas.width = Math.min(document.documentElement.clientWidth, window.innerWidth || 0);
|
||||
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(); })
|
||||
Reference in New Issue
Block a user