Merge pull request #3957 from fufesou/refact/remove_unused_code
remove unused code for code simulation
This commit is contained in:
commit
e9bbf53c2f
@ -462,12 +462,6 @@ impl Enigo {
|
|||||||
let current_window_thread_id =
|
let current_window_thread_id =
|
||||||
unsafe { GetWindowThreadProcessId(GetForegroundWindow(), std::ptr::null_mut()) };
|
unsafe { GetWindowThreadProcessId(GetForegroundWindow(), std::ptr::null_mut()) };
|
||||||
unsafe { LAYOUT = GetKeyboardLayout(current_window_thread_id) };
|
unsafe { LAYOUT = GetKeyboardLayout(current_window_thread_id) };
|
||||||
let keycode_and_shiftstate = unsafe { VkKeyScanExW(chr as _, LAYOUT) };
|
unsafe { VkKeyScanExW(chr as _, LAYOUT) as _ }
|
||||||
if keycode_and_shiftstate == (EVK_DECIMAL as i16) && chr == '.' {
|
|
||||||
// a workaround of italian keyboard shift + '.' issue
|
|
||||||
EVK_PERIOD as _
|
|
||||||
} else {
|
|
||||||
keycode_and_shiftstate as _
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user