Skip to content

Commit 079e7fe

Browse files
committed
Only reveal keyboard nav cursor on pressing a keyboard nav button
1 parent bacca54 commit 079e7fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/ui/src/lib/focus/focusManager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,7 @@ export class FocusManager {
768768
if (!metadata) return;
769769

770770
const navigationContext = this.buildNavigationContext(event, metadata);
771+
771772
if (this.shouldShowOutlineOnly(navigationContext)) {
772773
this.outline.set(true);
773774
event.stopPropagation();
@@ -901,7 +902,7 @@ export class FocusManager {
901902
action: NavigationAction | null;
902903
hasOutline?: boolean;
903904
}): boolean {
904-
return (!context.hasOutline && context.action !== 'tab') || false;
905+
return (!context.hasOutline && context.action !== null) || false;
905906
}
906907

907908
/**

0 commit comments

Comments
 (0)