Skip to content

Commit

Permalink
Fix ctrl or win interfering with character inputs (#149)
Browse files Browse the repository at this point in the history
* Fix ctrl or win interfering with character inputs

* condition on mac_cmd to check for problematic hotkeys

* apply suggested logic
  • Loading branch information
Vrixyz authored Mar 8, 2023
1 parent bb41bbc commit b7624eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ pub fn process_input_system(
}
}

if !ctrl && !win {
if !command || cfg!(target_os = "windows") && ctrl && alt {
for event in input_events.ev_received_character.iter() {
if !event.char.is_control() {
let mut context = context_params.contexts.get_mut(event.window).unwrap();
Expand Down

0 comments on commit b7624eb

Please sign in to comment.