Skip to content

Commit

Permalink
Fix ctrl or win interfering with character inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz committed Feb 7, 2023
1 parent cdce403 commit 6ab53df
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,16 +240,14 @@ pub fn process_input_system(
}
}

if !ctrl && !win {
for event in input_events.ev_received_character.iter() {
if !event.char.is_control() {
input_resources
.egui_input
.get_mut(&event.id)
.unwrap()
.events
.push(egui::Event::Text(event.char.to_string()));
}
for event in input_events.ev_received_character.iter() {
if !event.char.is_control() {
input_resources
.egui_input
.get_mut(&event.id)
.unwrap()
.events
.push(egui::Event::Text(event.char.to_string()));
}
}

Expand Down

0 comments on commit 6ab53df

Please sign in to comment.