block delete

This commit is contained in:
samunohito 2024-02-07 19:52:00 +09:00
parent 1d04e3abab
commit fa737fccdd
1 changed files with 18 additions and 2 deletions

View File

@ -383,8 +383,24 @@ function onGridCellValueChange(event: GridCellValueChangeEvent, currentState: Gr
}
}
function onGridKeyDown(event: GridKeyDownEvent, currentState: GridCurrentState) {
optInGridUtils.defaultKeyDownHandler(gridItems, event, currentState);
async function onGridKeyDown(event: GridKeyDownEvent, currentState: GridCurrentState) {
const { ctrlKey, code } = event.event;
switch (true) {
case ctrlKey: {
switch (code) {
case 'KeyC': {
optInGridUtils.copyToClipboard(gridItems, currentState);
break;
}
case 'KeyV': {
await optInGridUtils.pasteFromClipboard(gridItems, currentState);
break;
}
}
break;
}
}
}
async function refreshCustomEmojis() {