Skip to content

Commit bebb720

Browse files
committed
Make Keyboard visualizer work on Safari
1 parent 27114fd commit bebb720

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/pages/tools/keyboard-visualizer/index.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@ function MapManager({
2020
}): JSX.Element {
2121
return (
2222
<div className={styles.mapManager}>
23-
<button className={styles.mapButton} type="button">
23+
<button
24+
className={styles.mapButton}
25+
type="button"
26+
onClick={(e) => {
27+
// Safari does not focus buttons on click
28+
(e.target as HTMLElement).focus();
29+
}}>
2430
{currentMap ?? "Select a map..."}
2531
</button>
2632
<div className={styles.mapListContainer}>

0 commit comments

Comments
 (0)