File tree 4 files changed +31
-61
lines changed
4 files changed +31
-61
lines changed Original file line number Diff line number Diff line change 48
48
cache-all-crates : " true"
49
49
- run : cargo +nightly fmt --check
50
50
- run : cargo clippy
51
- - uses : houseabsolute/actions-rust-cross@v0
51
+ - uses : houseabsolute/actions-rust-cross@v1
52
52
with :
53
53
command : " build"
54
54
target : ${{ matrix.platform.target }}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ active-win-pos-rs = "0.9"
13
13
chumsky = " 0.9"
14
14
clap = { version = " 4" , features = [" derive" ] }
15
15
color-eyre = " 0.6"
16
- dirs = " 5 "
16
+ dirs = " 6 "
17
17
lazy_static = " 1"
18
18
parking_lot = " 0.12"
19
- win-hotkeys = " 0.3 "
19
+ win-hotkeys = " 0.4 "
Original file line number Diff line number Diff line change @@ -16,9 +16,8 @@ use std::process::ChildStdin;
16
16
use std:: process:: Command ;
17
17
use std:: process:: Stdio ;
18
18
use win_hotkeys:: error:: WHKError ;
19
- use win_hotkeys:: keys:: ModKey ;
20
- use win_hotkeys:: keys:: VKey ;
21
19
use win_hotkeys:: HotkeyManager ;
20
+ use win_hotkeys:: VKey ;
22
21
23
22
mod parser;
24
23
mod whkdrc;
@@ -48,7 +47,7 @@ lazy_static! {
48
47
49
48
#[ derive( Debug , Clone ) ]
50
49
pub struct HkmData {
51
- pub mod_keys : Vec < ModKey > ,
50
+ pub mod_keys : Vec < VKey > ,
52
51
pub vkey : VKey ,
53
52
pub command : String ,
54
53
pub process_name : Option < String > ,
@@ -89,7 +88,7 @@ impl TryFrom<&HotkeyBinding> for HkmData {
89
88
let ( trigger, mods) = value. keys . split_last ( ) . unwrap ( ) ;
90
89
let vkey = VKey :: from_keyname ( trigger) ?;
91
90
for m in mods {
92
- mod_keys. push ( ModKey :: from_keyname ( m) ?) ;
91
+ mod_keys. push ( VKey :: from_keyname ( m) ?) ;
93
92
}
94
93
95
94
( mod_keys, vkey)
You can’t perform that action at this time.
0 commit comments