Skip to content

Commit

Permalink
Click escape to deselect (#5103)
Browse files Browse the repository at this point in the history
* Closes #4946
* Closes #2709
  • Loading branch information
emilk authored Feb 7, 2024
1 parent a075ecb commit 16c8737
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/re_viewer/src/app_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ impl AppState {
let rec_cfg =
recording_config_entry(recording_configs, entity_db.store_id().clone(), entity_db);

if ui.input(|i| i.key_pressed(egui::Key::Escape)) {
rec_cfg.selection_state.clear_current();
}

let applicable_entities_per_visualizer = space_view_class_registry
.applicable_entities_for_visualizer_systems(entity_db.store_id());
let indicated_entities_per_visualizer =
Expand Down

0 comments on commit 16c8737

Please sign in to comment.