core: layout: store availability of text insertion
This commit is contained in:
parent
c152dc8468
commit
c459405318
2 changed files with 74 additions and 2 deletions
|
|
@ -204,6 +204,12 @@ impl<D: Display, K: Keyboard> Button<D, K> {
|
|||
&self.modifiers
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
pub fn set_text_supported(&mut self, text_supp: bool)
|
||||
{
|
||||
self.layout.set_text_supported(text_supp)
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
pub fn update_keys_supported(&mut self)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue