Omitting default actions if already provided
#70 ouverte le 9 mai 2019
Métriques du dépôt
- Stars
- (1 471 étoiles)
- Métriques de merge PR
- (Aucune PR mergée en 30 j)
Description
I'm defining a custom "Copy" action, which does something a bit different than the default "Copy" action, to some buttons, but on right click the content of the button gets selected (and I can't make them unselectable) and so the menu displays 2 "Copy" actions, the one I defined and the one this library defines:
I think I could generate the whole menu manually via the menu option but that would mean detecting all the cases where the default actions should be showed.
Could we instead add an option, canOverrideDefaultActions or something, where before inserting each default action the library check if another action with the same label has been provided already?