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