Skip to content

Commit

Permalink
feat(whkd): enable key-repeat by default
Browse files Browse the repository at this point in the history
This commit enables key-repeat support by default. Previously, key
repetition was not supported.

Given that this is a fundamental change to how the hotkey daemon treats
held hotkeys, a new release with a breaking change notice will be made.

BREAKING CHANGE: When held, hotkeys will now repeat until released

re #27
  • Loading branch information
LGUG2Z committed Sep 26, 2023
1 parent 1be9a9f commit e7b0b1f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
5 changes: 1 addition & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@ builds:
- cp ".\target\x86_64-pc-windows-msvc\release\whkd.exe" ".\dist\whkd_windows_amd64_v1\whkd.exe"

archives:
- replacements:
windows: pc-windows-msvc
amd64: x86_64
- name_template: "{{ .ProjectName }}-{{ .Version }}-x86_64-pc-windows-msvc"
format: zip
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Arch }}-{{ .Os }}"
files:
- LICENSE
- CHANGELOG.md
Expand Down
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.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "whkd"
version = "0.1.2"
version = "0.2.0"
authors = ["Jade Iqbal <jadeiqbal@fastmail.com>"]
description = "A simple hotkey daemon for Windows"
categories = ["hotkey-daemon", "windows"]
Expand All @@ -18,4 +18,4 @@ color-eyre = "0.6"
dirs = "5"
lazy_static = "1"
parking_lot = "0.12"
windows-hotkeys = "0.2.0"
windows-hotkeys = "0.2.1"
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ fn main() -> Result<()> {
}

let mut hkm = HotkeyManager::new();
hkm.set_no_repeat(false);

let mut mapped = HashMap::new();
for (keys, app_bindings) in &whkdrc.app_bindings {
Expand Down

0 comments on commit e7b0b1f

Please sign in to comment.