Skip to content

fix: nested list cells lose keyboard focus immediately after click - #360

Open
addavriance wants to merge 2 commits into
shedaniel:v26.1from
addavriance:v26.1
Open

addavriance wants to merge 2 commits into
shedaniel:v26.1from
addavriance:v26.1

Conversation

@addavriance

Copy link
Copy Markdown

Fixes #357.

Since the MC 26.1 API changes, BaseListEntry now acts both as a focus target for its parent (SubCategoryListEntry) and as a container tracking the selected cell via getFocused(). Re-applying focus from the parent ends up clearing the nested cell selection, even though focus hasn't actually changed.

This PR moves EditBox#setFocused(isSelected) into updateSelected(boolean) and overrides BaseListEntry#setFocused(boolean) as a no-op to preserve nested cell selection.

@addavriance
addavriance marked this pull request as draft June 24, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant