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.
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PhysicalKeyStatus
impl Send for PhysicalKeyStatus
impl Sync for PhysicalKeyStatus
impl Unpin for PhysicalKeyStatus
impl UnwindSafe for PhysicalKeyStatus
Blanket Implementations
Mutably borrows from an owned value. Read more