Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions mac/capslock.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Capslock Enhancement",
"url": "https://vonng.com/capslock.json",
"version": "3.0.3",
"version": "3.0.4",
"maintainers": [
"Vonng"
],
Expand Down Expand Up @@ -33,12 +33,14 @@
"right_command",
"right_control",
"right_option"
]
],
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "escape"
"key_code": "escape",
"lazy": true
}
]
},
Expand Down
8 changes: 5 additions & 3 deletions mac_v3/capslock.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Capslock Enhancement",
"url": "https://vonng.com/capslock.json",
"version": "3.0.3",
"version": "3.0.4",
"maintainers": [
"Vonng"
],
Expand Down Expand Up @@ -33,12 +33,14 @@
"right_command",
"right_control",
"right_option"
]
],
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "escape"
"key_code": "escape",
"lazy": true
}
]
},
Expand Down
8 changes: 4 additions & 4 deletions mac_v3/capslock.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Capslock Enhancement
url: https://vonng.com/capslock.json
version: 3.0.3
version: 3.0.4
maintainers: [ Vonng ]
author: Vonng(rh@vonng.com)
website: http://capslock.vonng.com
Expand All @@ -22,8 +22,8 @@ rules:
- description: 'capslock = esc(click) | hyper(hold)'
type: basic
from: { key_code: caps_lock ,modifiers: { optional: [ any ] } }
to: [ { key_code: right_shift,modifiers: [ right_command,right_control,right_option ] } ]
to_if_alone: [ { key_code: escape } ]
to: [ { key_code: right_shift,modifiers: [ right_command,right_control,right_option ], lazy: true } ]
to_if_alone: [ { key_code: escape, lazy: true } ]

- description: 'escape = capslock switch'
type: basic
Expand Down Expand Up @@ -1881,4 +1881,4 @@ rules:



...
...