From 9f6d3fca782ddc48d530be092ab3a97f0421b52f Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Wed, 13 Nov 2024 17:10:02 +0100 Subject: [PATCH] Add cmd+, shortcut for setting screen --- crates/viewer/re_ui/src/command.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crates/viewer/re_ui/src/command.rs b/crates/viewer/re_ui/src/command.rs index ed50f3c22a8c..c58b06069dc2 100644 --- a/crates/viewer/re_ui/src/command.rs +++ b/crates/viewer/re_ui/src/command.rs @@ -310,7 +310,14 @@ impl UICommand { Self::ToggleSelectionPanel => Some(ctrl_shift(Key::S)), Self::ToggleTimePanel => Some(ctrl_shift(Key::T)), Self::ToggleChunkStoreBrowser => Some(ctrl_shift(Key::D)), - Self::Settings => None, + Self::Settings => { + if cfg!(target_os = "macos") { + Some(KeyboardShortcut::new(Modifiers::MAC_CMD, Key::Comma)) + } else { + // TODO(emilk): shortcut for web and non-mac too + None + } + } #[cfg(debug_assertions)] Self::ToggleBlueprintInspectionPanel => Some(ctrl_shift(Key::I)),