Skip to content

Commit

Permalink
Merge pull request #1723 from pqrs-org/disable-accidental-keystroke-p…
Browse files Browse the repository at this point in the history
…revention-for-caps-lock

Add disable_accidental_keystroke_prevention_of_caps_lock.json
  • Loading branch information
tekezo authored Oct 7, 2024
2 parents a0910d2 + c4af480 commit f47897a
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<link rel="stylesheet" href="../../vendor/css/bootstrap.min.css" />

<p style="margin-top: 20px;">
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.
</p>

<p>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.</p>
4 changes: 4 additions & 0 deletions public/groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -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" }
]
}
]
}
]
}

0 comments on commit f47897a

Please sign in to comment.