core: button: emit key presses as text when available

This commit is contained in:
Richard Acayan 2024-08-04 22:11:27 -04:00
parent 399ab9deba
commit fc829a96c4
2 changed files with 28 additions and 4 deletions

View file

@ -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)
{