Skip to content

Dispatch the showMenu action of an expandable painted item - #365

Open
rezabakhshilaktasaraei wants to merge 1 commit into
desktop-app:masterfrom
rezabakhshilaktasaraei:item-show-menu-action
Open

Dispatch the showMenu action of an expandable painted item#365
rezabakhshilaktasaraei wants to merge 1 commit into
desktop-app:masterfrom
rezabakhshilaktasaraei:item-show-menu-action

Conversation

@rezabakhshilaktasaraei

Copy link
Copy Markdown
Contributor

An item of a painted list that opens something of its own — the picker of an emoji's skin tones — reports itself expandable, and the Windows UIA bridge expands and collapses such an element through the showMenu action (desktop-app/patches#266 makes the bridge offer the ExpandCollapse pattern for it).

Ui::Accessible::Item advertises showMenuAction() when the child state is expandable and dispatches it by identity to a new RpWidget::accessibilityChildShowMenu() (default no-op), like SetFocus and Invoke. Note: a new virtual on RpWidget — a full rebuild of dependents is needed.

Used by telegramdesktop/tdesktop emoji panel variants PR.

An item of a painted list that opens something of its own - a picker
of the variants of an emoji - reports itself expandable, and the
Windows bridge expands and collapses such an element through the
showMenu action. Advertise the action with the expandable state and
dispatch it to the owner by identity, like the others.
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