Skip to content

Commit

Permalink
Fix copy paste etc keybinds (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
eero-lehtinen authored Mar 2, 2024
1 parent 2814d27 commit a1f01a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ pub fn process_input_system(
win,
} = *input_resources.modifier_keys_state;
let mac_cmd = if *context_params.is_macos { win } else { false };
let command = if !*context_params.is_macos { win } else { ctrl };
let command = if *context_params.is_macos { win } else { ctrl };

let modifiers = egui::Modifiers {
alt,
Expand Down Expand Up @@ -266,7 +266,7 @@ pub fn process_input_system(
}
}

if !command || !*context_params.is_macos && ctrl && alt {
if !command && !win || !*context_params.is_macos && ctrl && alt {
for event in input_events.ev_received_character.read() {
if event.char.matches(char::is_control).count() == 0 {
let mut context = context_params.contexts.get_mut(event.window).unwrap();
Expand Down

0 comments on commit a1f01a9

Please sign in to comment.