fix format

This commit is contained in:
chiehw
2023-03-20 10:13:06 +08:00
parent 6ffa2cacb1
commit 44560b687e
3 changed files with 17 additions and 13 deletions

View File

@@ -791,9 +791,10 @@ fn try_fill_unicode(event: &Event, key_event: &KeyEvent, events: &mut Vec<KeyEve
}
}
}
None => {
None =>
{
#[cfg(target_os = "windows")]
if is_hot_key_modifiers_down() && unsafe { !IS_0X021D_DOWN }{
if is_hot_key_modifiers_down() && unsafe { !IS_0X021D_DOWN } {
if let Some(chr) = get_char_by_vk(event.code as u32) {
let mut evt = key_event.clone();
evt.set_seq(chr.to_string());
@@ -802,7 +803,6 @@ fn try_fill_unicode(event: &Event, key_event: &KeyEvent, events: &mut Vec<KeyEve
}
}
}
}
#[cfg(target_os = "windows")]