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]]
|
||||
name = "evdev-shortcut"
|
||||
version = "0.1.0"
|
||||
version = "0.1.2"
|
||||
dependencies = [
|
||||
"async-stream",
|
||||
"evdev",
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue