From 8186becdb37444e2e5fcb31a162246749555e3a1 Mon Sep 17 00:00:00 2001 From: arcaneshabang <34135416+arcaneshabang@users.noreply.github.com> Date: Fri, 20 Dec 2024 08:19:43 +0100 Subject: [PATCH] Fixing Ctrl+Z and Ctrl+Y for foreign keyboard fix done by change from raw.code = "KeyY" to raw.key = "y" --- nullboard.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nullboard.html b/nullboard.html index 0e1aca1..dab6d4e 100644 --- a/nullboard.html +++ b/nullboard.html @@ -4650,14 +4650,14 @@

Auto-backup

ev.target.nodeName == 'INPUT') return; - if (ev.ctrlKey && (raw.code == 'KeyZ')) + if (ev.ctrlKey && (raw.key == 'z')) { var ok = ev.shiftKey ? redoBoard() : undoBoard(); if (! ok) showDing(); } else - if (ev.ctrlKey && (raw.code == 'KeyY')) + if (ev.ctrlKey && (raw.key == 'y')) { if (! redoBoard()) showDing();