From e60020fce0d07f879fd2286a9898c0a41b6c0646 Mon Sep 17 00:00:00 2001 From: tigregalis <anak.harimau@gmail.com> Date: Thu, 20 Jul 2023 16:49:49 +0800 Subject: [PATCH] fix linux redo --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 684bb9f..0c6bfb8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -534,9 +534,9 @@ pub fn cosmic_edit_bevy_events( } // redo - #[cfg(target_os = "macos")] + #[cfg(not(target_os = "windows"))] let requested_redo = command && shift && keys.just_pressed(KeyCode::Z); - #[cfg(not(target_os = "macos"))] + #[cfg(target_os = "windows")] let requested_redo = command && keys.just_pressed(KeyCode::Y); if !cosmic_edit.readonly && requested_redo { -- GitLab