Struct webview2::PhysicalKeyStatus[][src]

#[repr(C)]
pub struct PhysicalKeyStatus { pub repeat_count: u32, pub scan_code: u32, pub is_extended_key: i32, pub is_menu_key_down: i32, pub was_key_down: i32, pub is_key_released: i32, }
Expand description

Contains the information packed into the LPARAM sent to a Win32 key event. For more information about WM_KEYDOWN, navigate to [WM_KEYDOWN message][WindowsWin32InputdevWmKeydown].

[WindowsWin32InputdevWmKeydown]: /windows/win32/inputdev/wm-keydown “WM_KEYDOWN message | Microsoft Docs”

Fields

repeat_count: u32

Specifies the repeat count for the current message.

scan_code: u32

Specifies the scan code.

is_extended_key: i32

Indicates that the key is an extended key.

is_menu_key_down: i32

Indicates that a menu key is held down (context code).

was_key_down: i32

Indicates that the key was held down.

is_key_released: i32

Indicates that the key was released.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.