fix bug for ctrl can't use

macos-click-through
vzex 3 years ago committed by Keith Simmons
parent feae712bae
commit 68816b346b

@ -121,8 +121,10 @@ impl KeyboardManager {
let key_text = key_event.text; let key_text = key_event.text;
if let Some(ori_key_text) = key_text { if let Some(ori_key_text) = key_text {
let mut key_text = ori_key_text; let mut key_text = ori_key_text;
if let Some(modify) = key_event.text_with_all_modifiers() { if self.alt {
key_text = modify; if let Some(modify) = key_event.text_with_all_modifiers() {
key_text = modify;
}
} }
// This is not a control key, so we rely upon winit to determine if // This is not a control key, so we rely upon winit to determine if
// this is a deadkey or not. // this is a deadkey or not.

Loading…
Cancel
Save