core: layout: store availability of text insertion

This commit is contained in:
Richard Acayan 2024-08-04 22:00:29 -04:00
parent c152dc8468
commit c459405318
2 changed files with 74 additions and 2 deletions

View file

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