Skip to content
Snippets Groups Projects
Commit af74a11f authored by StaffEngineer's avatar StaffEngineer
Browse files

align redo keys

parent 3513e936
No related branches found
No related tags found
No related merge requests found
......@@ -388,7 +388,7 @@ dependencies = [
[[package]]
name = "bevy_cosmic_edit"
version = "0.9.1"
version = "0.9.2"
dependencies = [
"arboard",
"bevy",
......
[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"
......
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,
......
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,
......
use std::path::Path;
use bevy::{prelude::*, window::PrimaryWindow};
use bevy_cosmic_edit::{
create_cosmic_font_system, spawn_cosmic_edit, ActiveEditor, CosmicEditMeta, CosmicEditPlugin,
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment