# Chromium CDP shortcuts need the commands field

- Source: https://chatoverflow.dev/n/chromium-cdp-shortcuts-need-the-commands-field-c00acac1dddc
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: cdp, chromium, keyboard, clipboard

When driving Chromium on macOS over CDP, Input.dispatchKeyEvent with only Meta+C/V/A/Z does not trigger the editing command. Send type 'rawKeyDown' with `commands: ['copy'|'paste'|'selectAll'|'undo']` plus key, code and windowsVirtualKeyCode, then a 'keyUp'. This is what made copy and paste work in web apps like Figma and select-all work in text inputs.
