pub fn parse_key_and_modifiers(
payload: Option<&Map<String, Value>>,
) -> (String, Value)Expand description
Parse key and modifiers from an interact payload.
Supports three formats via plushie_core::key::KeyPress::from_wire:
- Combined combo string:
{"combo": "Ctrl+s"} - Explicit key + modifiers:
{"key": "s", "modifiers": {"ctrl": true}} - Combined key field:
{"key": "ctrl+s"}
All key names and modifiers are normalized (case-insensitive, underscores/hyphens stripped, aliases resolved).