From b7961684a5e0f7b0ba5d2d1a550ba7d4a1984bd6 Mon Sep 17 00:00:00 2001 From: Antoine Beyeler Date: Fri, 28 Jul 2023 17:27:31 +0200 Subject: [PATCH] Set the correct unicode character for "ctrl" shortcuts Fixes rerun-io/rerun#2862 --- crates/egui/src/data/input.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/egui/src/data/input.rs b/crates/egui/src/data/input.rs index 99ea6ac03b9..29ff3f5dd52 100644 --- a/crates/egui/src/data/input.rs +++ b/crates/egui/src/data/input.rs @@ -610,11 +610,11 @@ pub struct ModifierNames<'a> { } impl ModifierNames<'static> { - /// ⌥ ^ ⇧ ⌘ - NOTE: not supported by the default egui font. + /// ⌥ ⌃ ⇧ ⌘ - NOTE: not supported by the default egui font. pub const SYMBOLS: Self = Self { is_short: true, alt: "⌥", - ctrl: "^", + ctrl: "⌃", shift: "⇧", mac_cmd: "⌘", mac_alt: "⌥", @@ -906,7 +906,7 @@ fn format_kb_shortcut() { cmd_shift_f.format(&ModifierNames::NAMES, true), "Shift+Cmd+F" ); - assert_eq!(cmd_shift_f.format(&ModifierNames::SYMBOLS, false), "^⇧F"); + assert_eq!(cmd_shift_f.format(&ModifierNames::SYMBOLS, false), "⌃⇧F"); assert_eq!(cmd_shift_f.format(&ModifierNames::SYMBOLS, true), "⇧⌘F"); }