Skip to content

Commit d76f0fe

Browse files
committedJan 13, 2025·
chore(deps): bump win-hotkeys from 0.3 to 0.4
1 parent e23df18 commit d76f0fe

File tree

4 files changed

+31
-61
lines changed

4 files changed

+31
-61
lines changed
 

‎.github/workflows/windows.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
cache-all-crates: "true"
4949
- run: cargo +nightly fmt --check
5050
- run: cargo clippy
51-
- uses: houseabsolute/actions-rust-cross@v0
51+
- uses: houseabsolute/actions-rust-cross@v1
5252
with:
5353
command: "build"
5454
target: ${{ matrix.platform.target }}

‎Cargo.lock

+25-54
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ active-win-pos-rs = "0.9"
1313
chumsky = "0.9"
1414
clap = { version = "4", features = ["derive"] }
1515
color-eyre = "0.6"
16-
dirs = "5"
16+
dirs = "6"
1717
lazy_static = "1"
1818
parking_lot = "0.12"
19-
win-hotkeys = "0.3"
19+
win-hotkeys = "0.4"

‎src/main.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ use std::process::ChildStdin;
1616
use std::process::Command;
1717
use std::process::Stdio;
1818
use win_hotkeys::error::WHKError;
19-
use win_hotkeys::keys::ModKey;
20-
use win_hotkeys::keys::VKey;
2119
use win_hotkeys::HotkeyManager;
20+
use win_hotkeys::VKey;
2221

2322
mod parser;
2423
mod whkdrc;
@@ -48,7 +47,7 @@ lazy_static! {
4847

4948
#[derive(Debug, Clone)]
5049
pub struct HkmData {
51-
pub mod_keys: Vec<ModKey>,
50+
pub mod_keys: Vec<VKey>,
5251
pub vkey: VKey,
5352
pub command: String,
5453
pub process_name: Option<String>,
@@ -89,7 +88,7 @@ impl TryFrom<&HotkeyBinding> for HkmData {
8988
let (trigger, mods) = value.keys.split_last().unwrap();
9089
let vkey = VKey::from_keyname(trigger)?;
9190
for m in mods {
92-
mod_keys.push(ModKey::from_keyname(m)?);
91+
mod_keys.push(VKey::from_keyname(m)?);
9392
}
9493

9594
(mod_keys, vkey)

0 commit comments

Comments
 (0)
Please sign in to comment.