feat:add cut row feature to contextmenu
This commit is contained in:
@@ -6,7 +6,7 @@ export const globalMenus: IRegisterContextMenu[] = [
|
||||
name: '剪切',
|
||||
shortCut: 'Ctrl + X',
|
||||
when: (payload) => {
|
||||
return !payload.isReadonly && payload.editorHasSelection
|
||||
return !payload.isReadonly
|
||||
},
|
||||
callback: (command: Command) => {
|
||||
command.executeCut()
|
||||
|
||||
Reference in New Issue
Block a user