Polish inspector add component workflow
CI / Format, lint, test, build (push) Waiting to run

This commit is contained in:
Rbanh committed 2026-06-06 03:08:28 -04:00
1 parent 19c4d017dc
commit 2fa64106c8
12 files changed
+747 -174

No files matched your search

+5 -1
View File
@@ -13,7 +13,7 @@ use crate::ui::hierarchy_ops::{
apply_sibling_change, apply_sibling_change_new, next_sibling_index,
reorder_entities_under_parent, would_create_cycle,
};
use crate::ui::UiState;
use crate::ui::{egui_captures_keyboard_from_world, UiState};
mod commands;
pub use commands::{EditorCommand, EditorEntitySnapshot, SiblingChange};
@@ -1189,6 +1189,10 @@ fn remove_authored_components(world: &mut World, entity: Entity, snapshot: &Edit
}
fn handle_history_hotkeys(world: &mut World) {
if egui_captures_keyboard_from_world(world) {
return;
}
let (undo, redo, delete, duplicate) = {
let keys = world.resource::<ButtonInput<KeyCode>>();
let ctrl = keys.any_pressed([KeyCode::ControlLeft, KeyCode::ControlRight]);