Skip to content

Commit 4ca983a

Browse files
committed
change modes notice
1 parent 672bc21 commit 4ca983a

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

frontend/src/ts/elements/modes-notice.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ export async function update(): Promise<void> {
6060
if (wordsHasTab()) {
6161
if (Config.quickRestart === "esc") {
6262
testModesNotice.appendHtml(
63-
`<div class="textButton noInteraction"><i class="fas fa-long-arrow-alt-right"></i>shift + tab to open commandline</div>`,
63+
`<div class="textButton noInteraction"><kbd>shift + tab</kbd> to open commandline</div>`,
6464
);
6565
testModesNotice.appendHtml(
66-
`<div class="textButton noInteraction"><i class="fas fa-level-down-alt fa-rotate-90"></i>shift + esc to restart</div>`,
66+
`<div class="textButton noInteraction"><kbd>esc</kbd> to restart</div>`,
6767
);
6868
}
6969
if (Config.quickRestart === "tab") {
7070
testModesNotice.appendHtml(
71-
`<div class="textButton noInteraction"><i class="fas fa-level-down-alt fa-rotate-90"></i>shift + tab to restart</div>`,
71+
`<div class="textButton noInteraction"><kbd>shift + tab</kbd> to restart</div>`,
7272
);
7373
}
7474
}
@@ -78,7 +78,7 @@ export async function update(): Promise<void> {
7878
Config.quickRestart === "enter"
7979
) {
8080
testModesNotice.appendHtml(
81-
`<div class="textButton noInteraction"><i class="fas fa-level-down-alt fa-rotate-90"></i>shift + enter to restart</div>`,
81+
`<div class="textButton noInteraction"><kbd>shift + enter</kbd> to restart</div>`,
8282
);
8383
}
8484

@@ -88,7 +88,7 @@ export async function update(): Promise<void> {
8888
testModesNotice.appendHtml(
8989
`<div class="textButton noInteraction"><i class="fas fa-book"></i>${escapeHTML(
9090
customTextName,
91-
)} (shift + enter to save progress)</div>`,
91+
)} (<kbd>shift + enter</kbd> to save progress)</div>`,
9292
);
9393
}
9494

@@ -100,7 +100,7 @@ export async function update(): Promise<void> {
100100

101101
if (Config.mode === "zen") {
102102
testModesNotice.appendHtml(
103-
`<div class="textButton noInteraction"><i class="fas fa-poll"></i>shift + enter to finish zen </div>`,
103+
`<div class="textButton noInteraction"><kbd>shift + enter</kbd> to finish zen </div>`,
104104
);
105105
}
106106

frontend/src/ts/states/hotkeys.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ type Hotkeys = {
1919
};
2020

2121
export const [hotkeys, setHotkeys] = createStore<Hotkeys>(
22-
calcHotkeys(getConfig, { shiftTab: false, shiftEnter: false }),
22+
calcHotkeys(getConfig, {
23+
shiftTab: false,
24+
shiftEnter: false,
25+
}),
2326
);
2427

2528
createEffect(() => {
@@ -51,5 +54,6 @@ function shiftedHotkey(
5154
): Hotkey {
5255
if (hotkey === "Tab" && options.shiftTab) return "Shift+Tab";
5356
if (hotkey === "Enter" && options.shiftEnter) return "Shift+Enter";
57+
5458
return hotkey;
5559
}

0 commit comments

Comments
 (0)