core: button: allow dragging to a text-only key part
This commit is contained in:
parent
fc829a96c4
commit
3bb02196db
2 changed files with 9 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue