Always use capital letters when rendering a keystroke

This commit is contained in:
Max Brunsfeld 2022-06-16 17:48:10 -07:00
parent a3b17ffd15
commit 2c61bc2b1f
2 changed files with 24 additions and 21 deletions

View file

@ -40,13 +40,10 @@ 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().to_uppercase(),
self.text_style.clone(),
)
.contained()
.with_style(self.container_style)
.boxed()
Label::new(keystroke.to_string(), self.text_style.clone())
.contained()
.with_style(self.container_style)
.boxed()
}))
.boxed()
} else {