core: button: emit key presses as text when available
This commit is contained in:
parent
399ab9deba
commit
fc829a96c4
2 changed files with 28 additions and 4 deletions
|
|
@ -355,6 +355,12 @@ impl Part {
|
|||
self.val.0
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
pub fn text(&self) -> &str
|
||||
{
|
||||
&self.val.1
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
pub fn press(&mut self)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue