From c4af4803dd3122f72b8ba75667048f282af7b48e Mon Sep 17 00:00:00 2001 From: Takayama Fumihiko Date: Tue, 8 Oct 2024 01:00:29 +0900 Subject: [PATCH] Add disable_accidental_keystroke_prevention_of_caps_lock.json --- ...tal_keystroke_prevention_of_caps_lock.html | 8 ++++++ public/groups.json | 4 +++ ...tal_keystroke_prevention_of_caps_lock.json | 25 +++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 public/extra_descriptions/disable_accidental_keystroke_prevention_of_caps_lock.html create mode 100644 public/json/disable_accidental_keystroke_prevention_of_caps_lock.json diff --git a/public/extra_descriptions/disable_accidental_keystroke_prevention_of_caps_lock.html b/public/extra_descriptions/disable_accidental_keystroke_prevention_of_caps_lock.html new file mode 100644 index 000000000..86d8d90ee --- /dev/null +++ b/public/extra_descriptions/disable_accidental_keystroke_prevention_of_caps_lock.html @@ -0,0 +1,8 @@ + + +

+ macOS has a feature that ignores the Caps Lock key if it is pressed only briefly to prevent accidental keystrokes. This setting removes that behavior, ensuring that the Caps Lock key is always + recognized. +

+ +

In practice, this is achieved by making the Caps Lock key appear as if it is pressed for at least 100 milliseconds, so that it is always processed by macOS.

diff --git a/public/groups.json b/public/groups.json index 8ef772763..84f48c4ed 100644 --- a/public/groups.json +++ b/public/groups.json @@ -452,6 +452,10 @@ { "path": "json/hyper_key_right_option.json" }, + { + "path": "json/disable_accidental_keystroke_prevention_of_caps_lock.json", + "extra_description_path": "extra_descriptions/disable_accidental_keystroke_prevention_of_caps_lock.html" + }, { "path": "json/CapsWord.json" }, diff --git a/public/json/disable_accidental_keystroke_prevention_of_caps_lock.json b/public/json/disable_accidental_keystroke_prevention_of_caps_lock.json new file mode 100644 index 000000000..fe7d19b69 --- /dev/null +++ b/public/json/disable_accidental_keystroke_prevention_of_caps_lock.json @@ -0,0 +1,25 @@ +{ + "title": "Disable the accidental keystroke prevention of Caps Lock", + "maintainers": ["tekezo"], + "rules": [ + { + "description": "Disable the accidental keystroke prevention of Caps Lock", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "caps_lock", + "modifiers": { "optional": ["any"] } + }, + "to": [ + { + "hold_down_milliseconds": 100, + "key_code": "caps_lock" + }, + { "key_code": "vk_none" } + ] + } + ] + } + ] +}