-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: multiple config file loading & '@' '~' prefix #87
Conversation
…ns for prefix feature
src/daemon.rs
Outdated
@@ -216,6 +221,11 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> { | |||
Some((i, Ok(event))) = keyboard_stream_map.next() => { | |||
let keyboard_state = &mut keyboard_states[i]; | |||
if let InputEventKind::Key(key) = event.kind() { | |||
if last_hotkey.is_some() && pending_release.is_some() && event.value() == 0 && event.code() == pending_release.as_ref().unwrap().keysym().code() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're checking for event value == 0 anyways, why not put this in the match statement ?
I wanted to choose comment type review but the car was shaking, my apologies. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@angelofallars I'm gonna merge since you have already approved this pr. |
Oh @EdenQwQ would you mind adding some documentation to readme.md? |
No description provided.