From 2a5754a4c8fa17af54fc127eb8b7c6660f2b131e Mon Sep 17 00:00:00 2001 From: Miodec Date: Fri, 23 Sep 2022 13:01:10 +0200 Subject: [PATCH] using no interaction class for notices that dont open the command line opening blind mode commands --- frontend/src/ts/commandline/commands.ts | 1 + frontend/src/ts/elements/modes-notice.ts | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/frontend/src/ts/commandline/commands.ts b/frontend/src/ts/commandline/commands.ts index f728d3acb..c7c12a2a6 100644 --- a/frontend/src/ts/commandline/commands.ts +++ b/frontend/src/ts/commandline/commands.ts @@ -390,6 +390,7 @@ const lists = { oppositeShiftMode: OppositeShiftModeCommands[0].subgroup, tags: TagsCommands[0].subgroup, resultSaving: ResultSavingCommands[0].subgroup, + blindMode: BlindModeCommands[0].subgroup, }; export function getList( diff --git a/frontend/src/ts/elements/modes-notice.ts b/frontend/src/ts/elements/modes-notice.ts index caad1d32c..3dd0ae235 100644 --- a/frontend/src/ts/elements/modes-notice.ts +++ b/frontend/src/ts/elements/modes-notice.ts @@ -35,24 +35,24 @@ export async function update(): Promise { if (TestState.isRepeated && Config.mode !== "quote") { $(".pageTest #testModesNotice").append( - `
repeated
` + `
repeated
` ); } if (!TestState.savingEnabled) { $(".pageTest #testModesNotice").append( - `
saving disabled
` + `
saving disabled
` ); } if (TestWords.hasTab) { if (Config.quickRestart === "esc") { $(".pageTest #testModesNotice").append( - `
shift + tab to open commandline
` + `
shift + tab to open commandline
` ); } else { $(".pageTest #testModesNotice").append( - `
shift + tab to restart
` + `
shift + tab to restart
` ); } } @@ -65,7 +65,7 @@ export async function update(): Promise { if (Config.mode === "zen") { $(".pageTest #testModesNotice").append( - `
shift + enter to finish zen
` + `
shift + enter to finish zen
` ); } @@ -90,7 +90,7 @@ export async function update(): Promise { if (Config.blindMode) { $(".pageTest #testModesNotice").append( - `
blind
` + `
blind
` ); }