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]] [[package]]
name = "evdev-shortcut" name = "evdev-shortcut"
version = "0.1.0" version = "0.1.2"
dependencies = [ dependencies = [
"async-stream", "async-stream",
"evdev", "evdev",

View file

@ -1,6 +1,6 @@
[package] [package]
name = "evdev-shortcut" name = "evdev-shortcut"
version = "0.1.1" version = "0.1.2"
authors = ["Robin Appelman <robin@icewind.nl>"] authors = ["Robin Appelman <robin@icewind.nl>"]
edition = "2021" edition = "2021"
description = "Global shortcuts using evdev" description = "Global shortcuts using evdev"
@ -23,4 +23,4 @@ tokio = { version = "1.28.2", features = ["macros", "rt-multi-thread"] }
[features] [features]
listener = ["evdev", "futures", "async-stream"] 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)] #[derive(Clone, Debug, Hash, PartialEq, Eq, Display, FromStr)]
#[display("{modifiers}-{key}")] #[display("{modifiers}-{key}")]
pub struct Shortcut { pub struct Shortcut {
modifiers: ModifierList, pub modifiers: ModifierList,
key: Key, pub key: Key,
} }
#[cfg(test)] #[cfg(test)]