|
@@ -326,7 +326,7 @@ function chooseScore(score: number) {
|
|
let keyPressTimestamp = 0;
|
|
let keyPressTimestamp = 0;
|
|
let keys: string[] = [];
|
|
let keys: string[] = [];
|
|
function numberKeyListener(event: KeyboardEvent) {
|
|
function numberKeyListener(event: KeyboardEvent) {
|
|
- if (event.target.tagName !== "BODY") return;
|
|
|
|
|
|
+ // if (event.target.tagName !== "BODY") return;
|
|
if (!store.currentQuestion) return;
|
|
if (!store.currentQuestion) return;
|
|
if (questionScoreDisabled) return;
|
|
if (questionScoreDisabled) return;
|
|
if (" jiklc".includes(event.key)) return;
|
|
if (" jiklc".includes(event.key)) return;
|
|
@@ -379,7 +379,7 @@ function numberKeyListener(event: KeyboardEvent) {
|
|
}
|
|
}
|
|
|
|
|
|
function submitListener(e: KeyboardEvent) {
|
|
function submitListener(e: KeyboardEvent) {
|
|
- if (event.target.tagName !== "BODY") return;
|
|
|
|
|
|
+ // if (event.target.tagName !== "BODY") return;
|
|
// if (import.meta.env.DEV && e.ctrlKey && e.key === "Enter") {
|
|
// if (import.meta.env.DEV && e.ctrlKey && e.key === "Enter") {
|
|
if (e.ctrlKey && e.key === "Enter") {
|
|
if (e.ctrlKey && e.key === "Enter") {
|
|
submit();
|
|
submit();
|