dream-num / univer

Univer is an open-source alternative to Google Sheets, Slides, and Docs
https://univer.ai
Apache License 2.0
5.75k stars 476 forks source link

[Feature] Add commands to the right-click menu of the worksheet in the sheets-ui plugin. #2653

Closed FrontToEnd closed 5 days ago

FrontToEnd commented 6 days ago

Initial checklist

Problem

I want to disable the pop-up of the right-click menu, currently the onBeforeCommandExecute cannot prevent the pop-up of the right-click menu. image

Solution

I can specify the right-click menu commands in onBeforeCommandExecute and prevent the menu from popping up by throwing an error.

jikkai commented 6 days ago

I think it is a bug 🐞. When contextMenu is set to false, the context menu of the sheet bar should not be opened. Don't worry about it, I will fix it soon.