From 850f48abb8c2486b764954c679fd85e5f060c3fb Mon Sep 17 00:00:00 2001 From: fufesou Date: Fri, 7 Apr 2023 16:28:34 +0800 Subject: [PATCH] remove unused code from https://github.com/fufesou/ustdsk/comit/b526bf4a67f7e05b2d3f739864ecc31carembc18a85 Signed-off-by: fufesou --- libs/enigo/src/win/win_impl.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libs/enigo/src/win/win_impl.rs b/libs/enigo/src/win/win_impl.rs index 068f3463a..a2839621c 100644 --- a/libs/enigo/src/win/win_impl.rs +++ b/libs/enigo/src/win/win_impl.rs @@ -462,12 +462,6 @@ impl Enigo { let current_window_thread_id = unsafe { GetWindowThreadProcessId(GetForegroundWindow(), std::ptr::null_mut()) }; unsafe { LAYOUT = GetKeyboardLayout(current_window_thread_id) }; - let keycode_and_shiftstate = unsafe { VkKeyScanExW(chr as _, LAYOUT) }; - if keycode_and_shiftstate == (EVK_DECIMAL as i16) && chr == '.' { - // a workaround of italian keyboard shift + '.' issue - EVK_PERIOD as _ - } else { - keycode_and_shiftstate as _ - } + unsafe { VkKeyScanExW(chr as _, LAYOUT) as _ } } }