Skip to content

Commit

Permalink
Set the correct unicode character for "ctrl" shortcuts (#3186)
Browse files Browse the repository at this point in the history
  • Loading branch information
abey79 authored Jul 28, 2023
1 parent 339b758 commit bdc8795
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/egui/src/data/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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: "⌥",
Expand Down Expand Up @@ -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");
}

Expand Down

0 comments on commit bdc8795

Please sign in to comment.