Skip to content

Commit d863e8d

Browse files
committed
fix(keymap): dynamic legends not working correctly
1 parent a424f96 commit d863e8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/ts/elements/keymap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ async function updateLegends(): Promise<void> {
489489
const layoutKeys = keymapKeys.map((el) => el.dataset["key"]);
490490
if (layoutKeys.includes(undefined)) return;
491491

492-
const keys = keymapKeys.map((el) => el.childNodes[1]);
492+
const keys = keymapKeys.map((el) => el.childNodes[0]);
493493

494494
const [lettersState, symbolsState] = states;
495495

0 commit comments

Comments
 (0)