-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix context menu for Image Edit menu #2726
Conversation
Hey Julia, I think this looks good. is Shift + F10 to open the context menu should also be supported? |
packages/roosterjs-content-model-plugins/lib/imageEdit/ImageEditPlugin.ts
Outdated
Show resolved
Hide resolved
packages/roosterjs-content-model-plugins/lib/imageEdit/ImageEditPlugin.ts
Outdated
Show resolved
Hide resolved
I didn't test it, at least for mac, this shortcut controls volume |
I see for Window it also triggers the context menu. |
It will not trigger, because only modifier key selects the image, let me add shift to select the image too |
To make context menu work with image edit plugin, when the user right clicks on an image, the editing operations will be applied, and the image will be selected. Also, if the image was selected and right click occurs in an element that is not a image, remove image selection.