From a1f01a9e3a0a680018d84ecae9549862cb0a6c55 Mon Sep 17 00:00:00 2001 From: Eero Lehtinen Date: Sat, 2 Mar 2024 14:12:21 +0200 Subject: [PATCH] Fix copy paste etc keybinds (#265) --- src/systems.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/systems.rs b/src/systems.rs index a41cda8b5..f06ffd80e 100644 --- a/src/systems.rs +++ b/src/systems.rs @@ -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, @@ -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();