Skip to content

Commit 485bb28

Browse files
committed
fix(keymap-legend-style): capitalize letters when caps lock is enabled
1 parent 0ba7f62 commit 485bb28

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
"dependencies": {
2929
"@date-fns/utc": "1.2.0",
30-
"@leonabcd123/modern-caps-lock": "3.0.4",
30+
"@leonabcd123/modern-caps-lock": "3.1.3",
3131
"@monkeytype/contracts": "workspace:*",
3232
"@monkeytype/funbox": "workspace:*",
3333
"@monkeytype/schemas": "workspace:*",

frontend/src/ts/elements/keymap.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { showErrorNotification } from "../states/notifications";
88
import { getActivePage } from "../states/core";
99
import * as TestWords from "../test/test-words";
1010
import { capsState } from "../test/caps-warning";
11+
import { onCapsLockChange } from "@leonabcd123/modern-caps-lock";
1112
import * as ShiftTracker from "../test/shift-tracker";
1213
import * as AltTracker from "../test/alt-tracker";
1314
import * as KeyConverter from "../utils/key-converter";
@@ -704,3 +705,5 @@ document.addEventListener("keyup", (e) => {
704705
void updateLegends();
705706
}
706707
});
708+
709+
onCapsLockChange(() => void updateLegends());

pnpm-lock.yaml

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)