Skip to main content

map_key_code

Function map_key_code 

Source
pub fn map_key_code(code: KeyCode) -> Option<InputKey>
Expand description

Map a crossterm KeyCode to the framework-agnostic InputKey.

Returns None for keys the A2UI model does not model (e.g. modifier-only presses). Mirrors the match in gallery::app::dispatch_event_to_focused.