Skip to content

[main] fix keytip shortcut persistence between ribbon tab switches - #3213

Open
pedrocovisi wants to merge 1 commit into
ONLYOFFICE:masterfrom
pedrocovisi:fix/hint-shortcut-persistence
Open

[main] fix keytip shortcut persistence between ribbon tab switches#3213
pedrocovisi wants to merge 1 commit into
ONLYOFFICE:masterfrom
pedrocovisi:fix/hint-shortcut-persistence

Conversation

@pedrocovisi

Copy link
Copy Markdown

When switching between ribbon tabs using Alt shortcuts (e.g. Alt+N then Alt+H), dynamically assigned data-hint-title-lang attributes from the previous tab visit persisted. This caused HintManager to incorrectly assume all visible items already had keytip titles assigned and skip reassignment, resulting in shortened single-letter shortcuts (such as 'A' instead of 'AA' for the format painter).

This commit removes dynamically assigned data-hint-title-lang attributes when recounting items before the length check, ensuring correct multi-letter keytips are generated when switching tabs.

When switching between ribbon tabs using Alt shortcuts (e.g. Alt+N then Alt+H), dynamically assigned data-hint-title-lang attributes from the previous tab visit persisted. This caused HintManager to incorrectly assume all visible items already had keytip titles assigned and skip reassignment, resulting in shortened single-letter shortcuts (such as 'A' instead of 'AA' for the format painter).

This commit removes dynamically assigned data-hint-title-lang attributes when recounting items before the length check, ensuring correct multi-letter keytips are generated when switching tabs.
@CLAassistant

CLAassistant commented Aug 16, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

2 participants