diff --git a/Cargo.lock b/Cargo.lock index 9a62cf40ed61223888568050fc8c07a478848657..eabf8f21a2c61afafdae87a9e8bb3c7170e209ec 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -388,7 +388,7 @@ dependencies = [ [[package]] name = "bevy_cosmic_edit" -version = "0.9.1" +version = "0.9.2" dependencies = [ "arboard", "bevy", diff --git a/Cargo.toml b/Cargo.toml index 2444dc2eafb7aac6ae9f81b43468c6f5a4d2c841..7dac19dd83b5ddbb18a7aae2272848fc34414f96 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bevy_cosmic_edit" -version = "0.9.1" +version = "0.9.2" edition = "2021" license = "MIT OR Apache-2.0" description = "Bevy cosmic-text multiline text input" diff --git a/examples/basic_sprite.rs b/examples/basic_sprite.rs index b011195d8245ca864d44fbeaab8181f37bd0ba93..696d26c810385be49ade2148d75ff3506e419ad6 100644 --- a/examples/basic_sprite.rs +++ b/examples/basic_sprite.rs @@ -1,5 +1,3 @@ -use std::path::Path; - use bevy::{core_pipeline::clear_color::ClearColorConfig, prelude::*, window::PrimaryWindow}; use bevy_cosmic_edit::{ create_cosmic_font_system, spawn_cosmic_edit, ActiveEditor, CosmicEditMeta, CosmicEditPlugin, diff --git a/examples/multiple_sprites.rs b/examples/multiple_sprites.rs index cd15ec80c84bff0ffa6a205bdd548a66f95ba3b2..e89bd86255da132a08f9942adefef741cf97c588 100644 --- a/examples/multiple_sprites.rs +++ b/examples/multiple_sprites.rs @@ -1,5 +1,3 @@ -use std::path::Path; - use bevy::{core_pipeline::clear_color::ClearColorConfig, prelude::*, window::PrimaryWindow}; use bevy_cosmic_edit::{ create_cosmic_font_system, spawn_cosmic_edit, ActiveEditor, CosmicEdit, CosmicEditMeta, diff --git a/examples/readonly.rs b/examples/readonly.rs index 2866e49d64d9cb9541d3849d256ebc22c7e3b94c..7a9a79a40a55aa0a28ebec14165035dc5114471a 100644 --- a/examples/readonly.rs +++ b/examples/readonly.rs @@ -1,5 +1,3 @@ -use std::path::Path; - use bevy::{prelude::*, window::PrimaryWindow}; use bevy_cosmic_edit::{ create_cosmic_font_system, spawn_cosmic_edit, ActiveEditor, CosmicEditMeta, CosmicEditPlugin, diff --git a/src/lib.rs b/src/lib.rs index 684bb9f87f1f445a2034ecd41d279eb543d0d3e7..b88c78397d5e5498ba47ae18597ee2ea70f3caae 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -534,10 +534,7 @@ pub fn cosmic_edit_bevy_events( } // redo - #[cfg(target_os = "macos")] let requested_redo = command && shift && keys.just_pressed(KeyCode::Z); - #[cfg(not(target_os = "macos"))] - let requested_redo = command && keys.just_pressed(KeyCode::Y); if !cosmic_edit.readonly && requested_redo { let edits = &edit_history.edits;