@@ -315,13 +315,13 @@ const allowKey = [
"ArrowLeft",
"ArrowRight",
"#",
- "ShiftLeft",
"Shift",
"[A-Za-z]",
];
const allowKeyRef = new RegExp(allowKey.join("|"));
function onPreventAnswerKey(e: KeyboardEvent) {
+ console.log(e)
if (!allowKeyRef.test(e.key)) {
e.preventDefault();
}