diff --git a/assets/keymaps/default.json b/assets/keymaps/default.json index f21138e541cf879511017ab5b1caa3217843d550..47b7cac7043b43f34a4316dfcd6f46ce5ec840b6 100644 --- a/assets/keymaps/default.json +++ b/assets/keymaps/default.json @@ -352,6 +352,9 @@ "bindings": { "left": "project_panel::CollapseSelectedEntry", "right": "project_panel::ExpandSelectedEntry", + "cmd-x": "project_panel::Cut", + "cmd-c": "project_panel::Copy", + "cmd-v": "project_panel::Paste", "cmd-alt-c": "project_panel::CopyPath", "f2": "project_panel::Rename", "backspace": "project_panel::Delete" diff --git a/crates/gpui/src/elements/keystroke_label.rs b/crates/gpui/src/elements/keystroke_label.rs index 0112b548463b450c0b49aa5e1ad4c93f633a5d10..2cd55e5ff0238a8fc801a801d9b710edaab33db4 100644 --- a/crates/gpui/src/elements/keystroke_label.rs +++ b/crates/gpui/src/elements/keystroke_label.rs @@ -40,10 +40,13 @@ impl Element for KeystrokeLabel { let mut element = if let Some(keystrokes) = cx.keystrokes_for_action(self.action.as_ref()) { Flex::row() .with_children(keystrokes.iter().map(|keystroke| { - Label::new(keystroke.to_string(), self.text_style.clone()) - .contained() - .with_style(self.container_style) - .boxed() + Label::new( + keystroke.to_string().to_uppercase(), + self.text_style.clone(), + ) + .contained() + .with_style(self.container_style) + .boxed() })) .boxed() } else {