Land release blocker fixes and workspace cleanup
This commit is contained in:
@@ -349,10 +349,7 @@ fn is_event_device(path: &Path) -> bool {
|
||||
/// Return true when the device's reported key set includes the combo's
|
||||
/// configured trigger key. A device that reports no keys at all (for
|
||||
/// example a mouse whose `EV_KEY` capability is buttons only) is rejected.
|
||||
fn device_supports_combo(
|
||||
supported: Option<&AttributeSetRef<Key>>,
|
||||
combo: &HotkeyCombo,
|
||||
) -> bool {
|
||||
fn device_supports_combo(supported: Option<&AttributeSetRef<Key>>, combo: &HotkeyCombo) -> bool {
|
||||
supported.map_or(false, |keys| keys.contains(Key::new(combo.key_code)))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user