test_helpers

Function create_key_event

Source
pub fn create_key_event(
    timestamp: MonotonicInstant,
    event_type: KeyEventType,
    key: impl Into<Option<Key>>,
    modifiers: impl Into<Option<Modifiers>>,
    key_meaning: impl Into<KeyMeaningWrapper>,
) -> KeyEvent
Expand description

Creates a KeyEvent with the given parameters.