diff --git a/packages/frontend/src/pages/admin/custom-emojis-grid.local.list.vue b/packages/frontend/src/pages/admin/custom-emojis-grid.local.list.vue index be3ca8759c..2ca27b7786 100644 --- a/packages/frontend/src/pages/admin/custom-emojis-grid.local.list.vue +++ b/packages/frontend/src/pages/admin/custom-emojis-grid.local.list.vue @@ -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() {