Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pkgs/id/web/src/cursors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ function updateCursorChrome(viewState: CursorViewState): void {
modeButton.addEventListener("click", () => {
viewState.tooltipMode = nextTooltipMode(viewState.tooltipMode);
refreshCursorUx(viewState);
// updateCursorChrome rebuilds the controls; keep keyboard focus on the
// replacement toggle instead of dropping it onto the document body.
chrome.querySelector<HTMLButtonElement>(".collab-cursor-mode")?.focus();
});
chrome.appendChild(modeButton);

Expand Down