Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
pentamassiv committed Jan 8, 2025
1 parent 5817df4 commit 16c7611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/win/win_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ impl Enigo {

/// Generic function to translate between virtual keys and scan codes
fn translate_key(input: u16, map_type: MAP_VIRTUAL_KEY_TYPE) -> InputResult<u16> {
let layout = Enigo::get_keyboard_layout();
let layout = Some(Enigo::get_keyboard_layout());

// Call MapVirtualKeyExW using the provided map_type and input
match unsafe { MapVirtualKeyExW(input.into(), map_type, layout) }.try_into() {
Expand Down

0 comments on commit 16c7611

Please sign in to comment.