1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-05 19:23:19 +00:00

Add virtual key code comment

This commit is contained in:
Colton Hurst
2025-08-06 08:57:45 -04:00
parent f3f7fc5235
commit 83dc036a89

View File

@@ -150,6 +150,7 @@ fn build_unicode_input(key_press: InputKeyPress, character: u16) -> INPUT {
///
/// Before modifying this function, make sure you read the SendInput() documentation:
/// https://learn.microsoft.com/en-in/windows/win32/api/winuser/nf-winuser-sendinput
/// https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
fn build_virtual_key_input(key_press: InputKeyPress, virtual_key: u8) -> INPUT {
match key_press {
InputKeyPress::Down => INPUT {