pub shortcut fields

This commit is contained in:
Robin Appelman 2023-06-17 20:24:46 +02:00
commit 4189e6ae1b
3 changed files with 5 additions and 5 deletions

2
Cargo.lock generated
View file

@ -86,7 +86,7 @@ dependencies = [
[[package]]
name = "evdev-shortcut"
version = "0.1.0"
version = "0.1.2"
dependencies = [
"async-stream",
"evdev",

View file

@ -1,6 +1,6 @@
[package]
name = "evdev-shortcut"
version = "0.1.1"
version = "0.1.2"
authors = ["Robin Appelman <robin@icewind.nl>"]
edition = "2021"
description = "Global shortcuts using evdev"
@ -23,4 +23,4 @@ tokio = { version = "1.28.2", features = ["macros", "rt-multi-thread"] }
[features]
listener = ["evdev", "futures", "async-stream"]
default = ["listener"]
default = ["listener"]

View file

@ -155,8 +155,8 @@ impl FromStr for ModifierList {
#[derive(Clone, Debug, Hash, PartialEq, Eq, Display, FromStr)]
#[display("{modifiers}-{key}")]
pub struct Shortcut {
modifiers: ModifierList,
key: Key,
pub modifiers: ModifierList,
pub key: Key,
}
#[cfg(test)]