Skip to content

Commit aaebad5

Browse files
committed
refactor(focus-visible): reset keyboardMode after focus
1 parent f6188c4 commit aaebad5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/utils/focus-visible.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const FOCUS_KEYS = [
1313
'ArrowUp',
1414
'Home',
1515
'End',
16+
'Meta',
1617
];
1718

1819
export interface FocusVisibleUtility {
@@ -54,6 +55,7 @@ export const startFocusVisible = (rootEl?: HTMLElement): FocusVisibleUtility =>
5455
}) as Element[];
5556
setFocus(toFocus);
5657
}
58+
keyboardMode = true;
5759
};
5860
const onFocusout = () => {
5961
if (ref.activeElement === root) {

0 commit comments

Comments
 (0)