Let a text context menu item set go above the standard items, and give it the contextmenu event
Categories
(Toolkit :: UI Widgets, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox157 | --- | fixed |
People
(Reporter: dao, Assigned: dao)
References
Details
(Whiteboard: [sng][mcab-hnt])
Attachments
(1 external file)
Bug 2064369 added EditContextMenu.addItems() so consumers can contribute items to the shared text context menu. Moving the last consumer of moz-input-box -- Thunderbird's compose subject field, bug 2066237 -- needs two things it doesn't offer.
An item set can only be placed with after, an item id, and goes last by default. A spellchecking menu straddles the standard items: suggestions and add-to-dictionary above, the enable toggle and dictionary list below. The standard items start at edit-contextmenu-undo, so the leading block has nothing to anchor to. A before option, symmetric with after, covers it.
onShowing gets the input and the set's items, but not the contextmenu event. InlineSpellChecker.initFromEvent resolves the clicked word from the event's rangeParent and rangeOffset, so a spellchecking set can't tell which word the menu was opened over.
| Assignee | ||
Updated•3 months ago
|
| Assignee | ||
Comment 1•3 months ago
|
||
The consumer is Thunderbird's compose subject field (bug 2066237), so nothing in this tree uses either yet.
| Assignee | ||
Updated•3 months ago
|
Updated•3 months ago
|
| Assignee | ||
Updated•3 months ago
|
Comment 3•2 months ago
|
||
| bugherder | ||
Updated•2 months ago
|
Updated•2 months ago
|
Description
•