From 7dfbea3dd991f2ce6ba48d61498bff604a8552d0 Mon Sep 17 00:00:00 2001 From: Highbyte Date: Sun, 20 Nov 2022 12:26:49 +0100 Subject: [PATCH] Fix keyboard input bug --- .../Highbyte.DotNet6502.App.SkiaWASM/wwwroot/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Highbyte.DotNet6502.App/Highbyte.DotNet6502.App.SkiaWASM/wwwroot/index.html b/Highbyte.DotNet6502.App/Highbyte.DotNet6502.App.SkiaWASM/wwwroot/index.html index a371f4a3..ba34d7e5 100644 --- a/Highbyte.DotNet6502.App/Highbyte.DotNet6502.App.SkiaWASM/wwwroot/index.html +++ b/Highbyte.DotNet6502.App/Highbyte.DotNet6502.App.SkiaWASM/wwwroot/index.html @@ -75,7 +75,7 @@ if (event.key == "ArrowDown" || event.key == "ArrowUp" || event.key == "ArrowRight" || event.key == "ArrowLeft" || event.key == "PageUp" || event.key == "PageDown" || event.key == "Home" || event.key == "End" || event.key == "Tab" || event.key == "Control" - || event.key == "1" || event.key == "2" || event.key == "3" || event.key == "4" || event.key == "5" || event.key == "6" || event.key == "7" || event.key == "8" || event.key == "9" || event.key == "0" + || (event.ctrlKey && (event.key == "1" || event.key == "2" || event.key == "3" || event.key == "4" || event.key == "5" || event.key == "6" || event.key == "7" || event.key == "8" || event.key == "9" || event.key == "0")) || event.key == "F11" || event.key == "F12") { event.preventDefault(); }