Show keystrokes as uppercase
This commit is contained in:
parent
63900612b0
commit
6c145b2abc
2 changed files with 10 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue