Skip to content

Commit

Permalink
chore(deps): bump win-hotkeys from 0.3 to 0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
LGUG2Z committed Jan 13, 2025
1 parent e23df18 commit fdc5032
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ color-eyre = "0.6"
dirs = "5"
lazy_static = "1"
parking_lot = "0.12"
win-hotkeys = "0.3"
win-hotkeys = "0.4"
7 changes: 3 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ use std::process::ChildStdin;
use std::process::Command;
use std::process::Stdio;
use win_hotkeys::error::WHKError;
use win_hotkeys::keys::ModKey;
use win_hotkeys::keys::VKey;
use win_hotkeys::HotkeyManager;
use win_hotkeys::VKey;

mod parser;
mod whkdrc;
Expand Down Expand Up @@ -48,7 +47,7 @@ lazy_static! {

#[derive(Debug, Clone)]
pub struct HkmData {
pub mod_keys: Vec<ModKey>,
pub mod_keys: Vec<VKey>,
pub vkey: VKey,
pub command: String,
pub process_name: Option<String>,
Expand Down Expand Up @@ -89,7 +88,7 @@ impl TryFrom<&HotkeyBinding> for HkmData {
let (trigger, mods) = value.keys.split_last().unwrap();
let vkey = VKey::from_keyname(trigger)?;
for m in mods {
mod_keys.push(ModKey::from_keyname(m)?);
mod_keys.push(VKey::from_keyname(m)?);
}

(mod_keys, vkey)
Expand Down

0 comments on commit fdc5032

Please sign in to comment.