Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
pentamassiv committed Apr 19, 2024
1 parent f86905c commit 5a50d95
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/win/win_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,6 @@ impl Enigo {
if virtual_key < 0 {
return Err(InputError::Mapping("Could not translate the character to the corresponding virtual-key code and shift state for the current keyboard".to_string()));
}
// unwrapping here is safe because the value is always a positive value of i16
// so it must fit
let virtual_key = VIRTUAL_KEY(virtual_key as u16);
let scan_code = Enigo::get_scancode(virtual_key, layout)?;
results.push((virtual_key, scan_code));
Expand Down

0 comments on commit 5a50d95

Please sign in to comment.