pub async fn press_key_with_modifiers(
client: &CdpClient,
session_id: &str,
key: &str,
modifiers: Option<i32>,
) -> Result<(), String>Expand description
Dispatch a keyDown+keyUp sequence for key with an optional CDP modifier bitmask.
Modifier values follow the CDP Input.dispatchKeyEvent spec:
1 = Alt, 2 = Control, 4 = Meta (Cmd), 8 = Shift.
Callers that need a platform-appropriate modifier (e.g. Cmd on macOS,
Ctrl elsewhere) must choose the value themselves – see cfg!(target_os).