mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Set the correct unicode character for "ctrl" shortcuts (#3186)
Fixes rerun-io/rerun#2862
This commit is contained in:
@@ -610,11 +610,11 @@ pub struct ModifierNames<'a> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl ModifierNames<'static> {
|
impl ModifierNames<'static> {
|
||||||
/// ⌥ ^ ⇧ ⌘ - NOTE: not supported by the default egui font.
|
/// ⌥ ⌃ ⇧ ⌘ - NOTE: not supported by the default egui font.
|
||||||
pub const SYMBOLS: Self = Self {
|
pub const SYMBOLS: Self = Self {
|
||||||
is_short: true,
|
is_short: true,
|
||||||
alt: "⌥",
|
alt: "⌥",
|
||||||
ctrl: "^",
|
ctrl: "⌃",
|
||||||
shift: "⇧",
|
shift: "⇧",
|
||||||
mac_cmd: "⌘",
|
mac_cmd: "⌘",
|
||||||
mac_alt: "⌥",
|
mac_alt: "⌥",
|
||||||
@@ -906,7 +906,7 @@ fn format_kb_shortcut() {
|
|||||||
cmd_shift_f.format(&ModifierNames::NAMES, true),
|
cmd_shift_f.format(&ModifierNames::NAMES, true),
|
||||||
"Shift+Cmd+F"
|
"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");
|
assert_eq!(cmd_shift_f.format(&ModifierNames::SYMBOLS, true), "⇧⌘F");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user