Skip to main content

classify_enable_disable_submenu_key

Function classify_enable_disable_submenu_key 

fn classify_enable_disable_submenu_key(
    virtual_key: VIRTUAL_KEY,
    control_key_state: u32,
) -> EnableDisableSubmenuAction
Expand description

Classifies an enable/disable-submenu keystroke.

See classify_control_mode_key for the MODIFIER_MASK rationale; the same lock-state / ENHANCED_KEY masking applies to the submenu so its [e], [d], [t] bindings keep working regardless of lock state.

§Arguments

  • virtual_key - The pressed key’s [VIRTUAL_KEY].
  • control_key_state - The raw dwControlKeyState field from the [KEY_EVENT_RECORD].

§Returns

The EnableDisableSubmenuAction the dispatch should execute.