-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1723 from pqrs-org/disable-accidental-keystroke-p…
…revention-for-caps-lock Add disable_accidental_keystroke_prevention_of_caps_lock.json
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
public/extra_descriptions/disable_accidental_keystroke_prevention_of_caps_lock.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
public/json/disable_accidental_keystroke_prevention_of_caps_lock.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" } | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |