mirror of
https://codeberg.org/icewind/evdev-shortcut.git
synced 2026-06-03 10:04:11 +02:00
pub shortcut fields
This commit is contained in:
parent
af80a5b16c
commit
4189e6ae1b
3 changed files with 5 additions and 5 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -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",
|
||||||
|
|
|
||||||
|
|
@ -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"]
|
||||||
|
|
|
||||||
|
|
@ -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)]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue