core: button: allow dragging to a text-only key part

This commit is contained in:
Richard Acayan 2024-08-04 22:12:25 -04:00
parent fc829a96c4
commit 3bb02196db
2 changed files with 9 additions and 4 deletions

View file

@ -402,6 +402,11 @@ impl Part {
self.key_avail = self.val.0 != Keysym::NoSymbol && key_supp;
}
pub fn pressable(&self) -> bool
{
self.text_avail || self.key_avail
}
pub fn modifier_id(&self) -> usize
{
match self.val.0 {