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 d76f0fe
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 61 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
cache-all-crates: "true"
- run: cargo +nightly fmt --check
- run: cargo clippy
- uses: houseabsolute/actions-rust-cross@v0
- uses: houseabsolute/actions-rust-cross@v1
with:
command: "build"
target: ${{ matrix.platform.target }}
Expand Down
79 changes: 25 additions & 54 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ active-win-pos-rs = "0.9"
chumsky = "0.9"
clap = { version = "4", features = ["derive"] }
color-eyre = "0.6"
dirs = "5"
dirs = "6"
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 d76f0fe

Please sign in to comment.